AppendPemData (Stringlist subroutine): Difference between revisions
Jump to navigation
Jump to search
m (→See also: add template for SL crypto methods) |
m (add syntax terms) |
||
Line 1: | Line 1: | ||
{{Template:Stringlist:AppendPemData subtitle}} | {{Template:Stringlist:AppendPemData subtitle}} | ||
The PEM (Privacy Enhanced Mail) protocol uses base64 encoding for binary data that needs to be transferred and stored as text. | |||
==Syntax== | ==Syntax== | ||
{{Template:Stringlist:AppendPemData syntax}} | {{Template:Stringlist:AppendPemData syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table | <table> | ||
<tr><th>sl</th> | <tr><th>sl</th> | ||
<td>Stringlist object</td></tr> | <td>A <var>Stringlist</var> object that contains labeled, base64 encoded data.</td></tr> | ||
<tr><th><var>Data</var></th> | <tr><th><var>Data</var></th> | ||
<td> | <td>The base64 encoded <var>Longstring</var> or <var>String</var> you are appending to the data stored in <var class="term">sl</var>. </td></tr> | ||
<tr><th><var>label</var></th> | <tr><th><var>label</var></th> | ||
<td>string</td></tr> | <td>The string that identifies the base64 encoded data to which you are appending data. Examples include <code>X509 CERTIFICATE</code>, <code>X509 CRL</code>, <code>RSA PRIVATE KEY</code>. X509 certificate, private key, and CRL data will be contained within the text markers <code>-----BEGIN <i>label</i>-----</code> and <code>-----END <i>label</i>-----</code>. | ||
<p> | |||
Note that this is a required, case-sensitive, value; if it does not match the first and last label items enclosing | |||
base64 data within <var class="term">sl</var>, no data is appended. </p></td></tr> | |||
</table> | </table> | ||
==Usage notes== | ==Usage notes== | ||
==Examples== | ==Examples== | ||
==See also== | ==See also== | ||
<p> | <p> |
Revision as of 00:16, 17 March 2016
Append PEM encoded string to a Stringlist (Stringlist class)
[Introduced in Model 204 7.5]
The PEM (Privacy Enhanced Mail) protocol uses base64 encoding for binary data that needs to be transferred and stored as text.
Syntax
sl:AppendPemData( [Data=] string, [label=] string)
Syntax terms
sl | A Stringlist object that contains labeled, base64 encoded data. |
---|---|
Data | The base64 encoded Longstring or String you are appending to the data stored in sl. |
label | The string that identifies the base64 encoded data to which you are appending data. Examples include X509 CERTIFICATE , X509 CRL , RSA PRIVATE KEY . X509 certificate, private key, and CRL data will be contained within the text markers -----BEGIN label----- and -----END label----- .
Note that this is a required, case-sensitive, value; if it does not match the first and last label items enclosing base64 data within sl, no data is appended. |
Usage notes
Examples
See also
Stringlist methods:
- AppendCertificateInfo
- AppendCertificateRequest
- AppendCertificateRequestInfo
- AppendClientCertificateRequest
- AppendEncryptedSecurityData
- AppendGeneratedPrivateKey
- AppendPemData
- AppendPrivateKeyInfo
- AppendSignedCertificate
- AppendSignedClientCertificate
- CheckCertificate
- CheckCertificateRequest
- PemToString
String methods:
- CertificateRequest
- SignedCertificate
- DerToXmlDoc
- RSAPrivateKeyToXmlDoc
- X509CertificateToXmlDoc
- X509CrlToXmlDoc
- Multiple cryptographic cipher methods
System methods:
Socket methods:
Background information: