CertificateRequest (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 14: Line 14:


<tr><th><var>Country</var></th>
<tr><th><var>Country</var></th>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<td>This optional, [[Notation conventions for methods#Named parameters|name required]], string argument inserts a country value into the generated certificate request.
<p>The default value of this argument is [[??]].</p></td></tr>


<tr><th><var>State</var></th>
<tr><th><var>State</var></th>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<td>This optional, name required, string argument inserts a state/province value into the generated certificate request.
<p>The default value of this argument is [[??]].</p></td></tr>


<tr><th><var>City</var></th>
<tr><th><var>City</var></th>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<td>This optional, name required, string argument inserts a locality value into the generated certificate request.
<p>The default value of this argument is [[??]].</p></td></tr>


<tr><th><var>Organization</var></th>
<tr><th><var>Organization</var></th>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<td>This optional, name required, string argument inserts an organization value into the generated certificate request.
<p>The default value of this argument is [[??]].</p></td></tr>


<tr><th><var>OrganizationalUnit</var></th>
<tr><th><var>OrganizationalUnit</var></th>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<td>This optional, name required, string argument inserts an organization unit (OU) value into the generated certificate request.
<p>The default value of this argument is [[??]].</p></td></tr>


<tr><th><var>CommonName</var></th>
<tr><th><var>CommonName</var></th>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<td>This optional, name required, string argument inserts a common-name (CN) value into the generated certificate request.
<p>
The default value of this argument is [[??]].</p></td></tr>


<tr><th><var>SignatureAlgorithm</var></th>
<tr><th><var>SignatureAlgorithm</var></th>
<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>.
<td>This optional, 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>
<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>

Revision as of 23:27, 18 March 2016

Create a certificate request from a private key (String class)

[Requires Janus Network Security]

This page is under construction.

Syntax

%certRequest = string:CertificateRequest[( [Country= string], - [State= string], [City= string], - [Organization= string], - [OrganizationalUnit= string], - [CommonName= string], - [SignatureAlgorithm= digestAlgorithm])] Throws PKCSError

Syntax terms

%certRequest string
string string
Country This optional, name required, string argument inserts a country value into the generated certificate request.

The default value of this argument is ??.

State This optional, name required, string argument inserts a state/province value into the generated certificate request.

The default value of this argument is ??.

City This optional, name required, string argument inserts a locality value into the generated certificate request.

The default value of this argument is ??.

Organization This optional, name required, string argument inserts an organization value into the generated certificate request.

The default value of this argument is ??.

OrganizationalUnit This optional, name required, string argument inserts an organization unit (OU) value into the generated certificate request.

The default value of this argument is ??.

CommonName This optional, name required, string argument inserts a common-name (CN) value into the generated certificate request.

The 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: