SignedCertificate (String function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (→‎See also: add template for SL crypto methods)
m (add identifiers)
Line 1: Line 1:
{{Template:String:SignedCertificate subtitle}}
{{Template:String:SignedCertificate subtitle}}
This page is [[under construction]].
This page is [[under construction]].
==Syntax==
==Syntax==
{{Template:String:SignedCertificate syntax}}
{{Template:String:SignedCertificate syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table>
<tr><th>%signedCert</th><td>string</td></tr>
<tr><th>%signedCert</th>
<td>string</td></tr>
 
<tr><th>string</th>
<tr><th>string</th>
<td>string</td></tr>
<td>string</td></tr>
<tr><th><var>PrivateKey</var></th>
<tr><th><var>PrivateKey</var></th>
<td>string</td></tr>
<td>This [[Notation conventions for methods#Named parameters|name allowed]] parameter is a <var>Longstring</var> that contains an RSA-generated private key. This value must be less than or equal to 2048 bits.</td></tr>
 
<tr><th><var>Signer</var></th>
<tr><th><var>Signer</var></th>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<tr><th><var>StartDate</var></th>
<tr><th><var>StartDate</var></th>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<tr><th><var>EndDate</var></th>
<tr><th><var>EndDate</var></th>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<tr><th><var>SerialNumber</var></th>
<tr><th><var>SerialNumber</var></th>
<td>number<br/>This default value of this argument is [[??]].</td></tr>
<td>number<br/>This default value of this argument is [[??]].</td></tr>
<tr><th><var>SignatureAlgorithm</var></th>
<tr><th><var>SignatureAlgorithm</var></th>
<td><var>DigestAlgorithm</var> value<br/>This default value of this argument is [[??]].</td></tr>
<td>This optional, [[Notation conventions for methods#Named parameters|name required]], argument is a <var>[[DigestAlgorithm enumeration|DigestAlgorithm]]</var> enumeration value.  Valid options are: <var>MD5</var>, <var>SHA1</var>, <var>SHA256</var>.
<p class="note"><b>Note:</b> Although supported and currently the default, most modern browsers are deprecating <var>SHA1</var>.</p></td></tr>
</table>
</table>
==Usage notes==
==Usage notes==
==Examples==
==Examples==
==See also==
==See also==
<p>
<p>

Revision as of 23:28, 18 March 2016

Sign a certificate request (String class)

[Requires Janus Network Security]

This page is under construction.

Syntax

[%signedCert =] string:SignedCertificate( [PrivateKey=] string, - [[Signer=] string], - [[StartDate=] string], - [[EndDate=] string], - [[SerialNumber=] number], - [SignatureAlgorithm= digestAlgorithm]) Throws PKCSError

Syntax terms

%signedCert string
string string
PrivateKey This name allowed parameter is a Longstring that contains an RSA-generated private key. This value must be less than or equal to 2048 bits.
Signer string
This default value of this argument is ??.
StartDate string
This default value of this argument is ??.
EndDate string
This default value of this argument is ??.
SerialNumber number
This default value of this argument is ??.
SignatureAlgorithm This optional, name required, argument is a DigestAlgorithm enumeration value. Valid options are: MD5, SHA1, SHA256.

Note: Although supported and currently the default, most modern browsers are deprecating SHA1.

Usage notes

Examples

See also

String methods:

Stringlist methods:

System methods:

Socket methods: