AppendCertificateRequestInfo (Stringlist function): Difference between revisions
No edit summary |
m (→See also: add links) |
||
Line 82: | Line 82: | ||
==See also== | ==See also== | ||
<p> | |||
<var>Stringlist</var> methods: </p> | |||
<ul> | <ul> | ||
<li><var>[[AppendCertificateInfo (Stringlist function)|AppendCertificateInfo]]</var> | <li><var>[[AppendCertificateInfo (Stringlist function)|AppendCertificateInfo]]</var></li> | ||
<li><var>[[AppendCertificateRequest (Stringlist function)|AppendCertificateRequest]]</var> | |||
<li><var>[[AppendClientCertificateRequest (Stringlist function)|AppendClientCertificateRequest]]</var> | <li><var>[[AppendCertificateRequest (Stringlist function)|AppendCertificateRequest]]</var></li> | ||
<li><var>[[AppendEncryptedSecurityData (Stringlist subroutine)|AppendEncryptedSecurityData]]</var> | |||
<li><var>[[AppendGeneratedPrivateKey (Stringlist | <li><var>[[AppendClientCertificateRequest (Stringlist function)|AppendClientCertificateRequest]]</var></li> | ||
<li><var>[[AppendPrivateKeyInfo (Stringlist function)|AppendPrivateKeyInfo]]</var> | |||
<li><var>[[AppendSignedCertificate (Stringlist function)|AppendSignedCertificate]]</var> | <li><var>[[AppendEncryptedSecurityData (Stringlist subroutine)|AppendEncryptedSecurityData]]</var></li> | ||
<li><var>[[AppendGeneratedPrivateKey (Stringlist function)|AppendGeneratyedPrivateKey]]</var></li> | |||
<li><var>[[AppendPrivateKeyInfo (Stringlist function)|AppendPrivateKeyInfo]]</var></li> | |||
<li><var>[[AppendSignedCertificate (Stringlist function)|AppendSignedCertificate]]</var></li> | |||
<li><var>[[AppendSignedClientCertificate (Stringlist function)|AppendSignedClientCertificate]]</var></li> | <li><var>[[AppendSignedClientCertificate (Stringlist function)|AppendSignedClientCertificate]]</var></li> | ||
<li><var>[[CheckCertificate (Stringlist function)|CheckCertificate]]</var> | |||
<li><var>[[CheckCertificateRequest (Stringlist function)|CheckCertificateRequest]]</var> | <li><var>[[CheckCertificate (Stringlist function)|CheckCertificate]]</var></li> | ||
<li>[[Release notes for Sirius Mods V8.0#DER2Xml|DER-to-XmlDoc methods ( | |||
<li><var>[[CheckCertificateRequest (Stringlist function)|CheckCertificateRequest]]</var></li> | |||
</ul> | |||
<p> | |||
<var>String</var> methods:</p> | |||
<ul> | |||
<li>[[Release notes for Sirius Mods V8.0#DER2Xml|DER-to-XmlDoc methods]]</li> | |||
</ul> | |||
<p> | |||
<var>System</var> methods: </p> | |||
<ul> | |||
<li><var>[[GeneratedPrivateKey (System function)|GeneratedPrivateKey]]</var></li> | |||
</ul> | </ul> | ||
{{Template:Stringlist:AppendCertificateRequestInfo footer}} | {{Template:Stringlist:AppendCertificateRequestInfo footer}} |
Revision as of 17:58, 14 March 2016
Add certificate request information to a Stringlist (Stringlist class)
[Requires Janus Network Security]
This callable method adds lines from the information portion of an SSL certificate to the end of a Stringlist.
Syntax
[%rc =] sl:AppendCertificateRequestInfo( certificateRequest)
Syntax terms
%rc | An, optional, numeric variable that is set to zero if the function is a success. The possible return codes are described elsewhere in "Return codes". |
---|---|
sl | A Stringlist object. |
certificateRequest | A Stringlist object that contains the raw text of an SSL certificate request. |
Usage notes
- The updated Stringlist contains an arbitrary amount of
information in an arbitrary order. Each list item
is in "ID=value" format. These are the possible IDs:
S.C Subject country S.S Subject state or province S.L Subject locality - city, town, village, etc. S.O Subject organization S.OU Subject organization unit S.CN Subject common name I.C Issuer country I.S Issuer state or province I.L Issuer locality - city, town, village, etc. I.O Issuer organization I.OU Issuer organization unit I.CN Issuer common name EFF Effective date in YYMMDDHHMISS format (GMT) EXP Expiration date in YYMMDDHHMISS format (GMT) ALG Key algorithm - currently always RSA N Public modulus in hexadecimal E Public exponent in hexadecimal
Examples
In the following example, a certificate request is hard-coded into one Stringlist, then the information contained in the certificate is translated via AppendCertificateInfo into another Stringlist:
b %sl is object stringlist %creq is object stringlist %sl = new %creq = new text to %creq raw -----BEGIN NEW CERTIFICATE REQUEST----- MIIBSTCB9AIBADCBkzELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAk1BMRIwEAYDVQQH EwlDYW1icmlkZ2UxHTAbBgNVBAoTFFNpcml1cyBTb2Z0d2FyZSBJbmMuMR0wGwYD VQQLExRTb2Z0d2FyZSBEZXZlbG9wbWVudDElMCMGA1UEAxMcd3d3LnNpcml1cy1z b2Z0d2FyZS5jb206NDQ0NDBZMA0GCSqGSIb3DQEBAQUAA0gAMEUCQGeK7FoF5KOV fkJeY+/mGFB/mnqOK+lXtKkyGsvE2IT3sWe6bt4/UBxAmryflxa1xnRirTBcvyr2 092HW5Cie90CAQMwDQYJKoZIhvcNAQEEBQADQQAfh/JQALxnQo9YFczgpSbLlN6i UKSS4qVe1e2resil+rSmrG+W9YTBIDnT2GcdotAIF9L3/6LQdmuipXgicg3m -----END NEW CERTIFICATE REQUEST----- end text %sl:appendCertificateInfo(%creq) %sl:print end
The result is something like:
S.C=US S.S=MA S.L=Cambridge S.O=Sirius Software Inc. S.OU=Software Development S.CN=www.sirius-software.com:4444 ALG=RSA N=678AEC5A05E4A3957E425E63EFE618507F9A7A8E ... 305CBF2AF6D3DD875B90A27BDD E=03
See also
Stringlist methods:
- AppendCertificateInfo
- AppendCertificateRequest
- AppendClientCertificateRequest
- AppendEncryptedSecurityData
- AppendGeneratyedPrivateKey
- AppendPrivateKeyInfo
- AppendSignedCertificate
- AppendSignedClientCertificate
- CheckCertificate
- CheckCertificateRequest
String methods:
System methods: