11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

createCertRequest<br />

Syntax<br />

createCertRequest(key, inFormat, keyLoc, algorithm, digest, passPhrase,<br />

subjectData, outFile, outFormat)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

The createCertRequest() function generates a PKCS #10 certificate request from a<br />

private key in PKCS #8 form and a set of user specified data. The request can be sent<br />

to a CA or used as a parameter to createCertificate() to obtain an X.509 public key<br />

certificate.<br />

The certificate request will typically contain the information described in the<br />

following table.<br />

Item Description<br />

Version Defaults to 0.<br />

The subject data must be provided by the requester through the dynamic array,<br />

subjectData. It contains @FM separated attributes in the form of “attri=value”.<br />

1-177 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

Subject The identification data of the certificate holder. This includes, country,<br />

state/province, locality (city), organization, unit, common name, email<br />

address, and so forth.<br />

Public key The key’s algorithm (RSA or DSA) and value.<br />

Signature The signature of the requester, (signed by the private key).<br />

Certificate Request Information

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!