AppendCertificateRequest (Stringlist function)

From m204wiki
Revision as of 22:06, 11 May 2012 by JAL2 (talk | contribs)
Jump to navigation Jump to search

Add certificate request to a Stringlist (Stringlist class)

[Requires Janus Network Security]


This callable method generates an SSL client certificate from a given private key, and it adds the certificate lines to the end of a Stringlist.

Syntax

[%rc =] sl:AppendCertificateRequest( [PrivateKey=] string, - [[Country=] string], [[State=] string], - [[City=] string], - [[Organization=] string], - [[OrganizationalUnit=] string], - [[CommonName=] string], - [SignatureAlgorithm= digestAlgorithm])

Syntax terms

%rc An, optional, numeric variable that is set to zero if the function is a success. The possible return codes are described below in "Return codes".
sl Stringlist object
PrivateKey This name allowed parameter is a Stringlist object that contains an RSA-generated private key. This value must be less than or equal to 2048 bits.
Country string
State string
City string
Organization string
OrganizationalUnit string
CommonName string

Return codes

0All is well.
3Out of CCATEMP.
5Stringlist identifier missing.
6Invalid Stringlist identifier.
7Insufficient storage.
10Private key Stringlist identifier missing.
11Invalid private key Stringlist identifier.
12Invalid private key.
13Challenge data mismatch.
14Bad private key/challenge signature.

Usage notes

Examples

See also