RSAPrivateKeyToXmlDoc (String function): Difference between revisions
Jump to navigation
Jump to search
m (→See also) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:String:RSAPrivateKeyToXmlDoc subtitle}} | {{Template:String:RSAPrivateKeyToXmlDoc subtitle}} | ||
X509 is a general authentication framework that establishes standard formats for for public-key certificates, certificate revocation list (CRLs), and more. <var>X509CertificateToXmlDoc</var> converts a string (<var>Longstring</var>) that contains a private key to an <var>[[XmlDoc]]</var>. | |||
==Syntax== | ==Syntax== | ||
{{Template:String:RSAPrivateKeyToXmlDoc syntax}} | {{Template:String:RSAPrivateKeyToXmlDoc syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>% | <tr><th>%doc</th><td>An <var>XmlDoc</var> object variable to contain the decoded value of the method object, <var class="term">string</var>.</td></tr> | ||
<tr><th>string</th> | <tr><th>string</th> | ||
<td>string</td></tr> | <td>A DER encoded string that contains the contents of a digital certificate.</td></tr> | ||
</table> | </table> | ||
==Usage notes== | ==Usage notes== | ||
<ul> | |||
<li><var>RSAPrivateKeyToXmlDoc</var> is very similar to | |||
<var>[[DerToXmlDoc (String function)|DerToXmlDoc]]</var>, except that <var>RSAPrivateKeyToXmlDoc</var> understands the semantics of the private key tags, so it provides more meaningful XML element names. | |||
<li><var>RSAPrivateKeyToXmlDoc</var> is a complete implementation of the PKCS standards for private key syntax. | |||
<li>Currently, no method is available to produce a DER stream from an <var>XmlDoc</var> nor to validate the signature on a certificate. | |||
</ul> | |||
==Examples== | ==Examples== | ||
==See also== | ==See also== | ||
Related methods: | Related methods: |
Revision as of 20:20, 19 April 2012
Convert BER encoded RSA private key to XML (String class)
[Introduced in Sirius Mods 8.0]
X509 is a general authentication framework that establishes standard formats for for public-key certificates, certificate revocation list (CRLs), and more. X509CertificateToXmlDoc converts a string (Longstring) that contains a private key to an XmlDoc.
Syntax
%doc = string:RSAPrivateKeyToXmlDoc Throws InvalidBerData
Syntax terms
%doc | An XmlDoc object variable to contain the decoded value of the method object, string. |
---|---|
string | A DER encoded string that contains the contents of a digital certificate. |
Usage notes
- RSAPrivateKeyToXmlDoc is very similar to DerToXmlDoc, except that RSAPrivateKeyToXmlDoc understands the semantics of the private key tags, so it provides more meaningful XML element names.
- RSAPrivateKeyToXmlDoc is a complete implementation of the PKCS standards for private key syntax.
- Currently, no method is available to produce a DER stream from an XmlDoc nor to validate the signature on a certificate.
Examples
See also
Related methods:
- String class: X509CrlToXmlDoc, X509CertificateToXmlDoc, and DerToXmlDoc
- System class: ClientCertificate
- Socket class: Certificate
- HttpRequest class: Get, Post, and Send
- Stringlist class: PemToString