CryptoSys PKI Toolkit Manual
X509.SaveFileFromString Method
Creates a new X.509 certificate file from a base64 string.
Syntax
[C#]
public static int SaveFileFromString(
string newCertFile,
string certString,
bool inPEMFormat
)
[VB.NET]
Public Shared Function SaveFileFromString ( _
newCertFile As String, _
certString As String, _
inPEMFormat As Boolean _
) As Integer
Parameters
- newCertFile
- Name of new certificate file to be created.
- certString
- String containing certificate data in base64 format.
- inPEMFormat
- True to save in base64 PEM format, or false to save in binary BER format.
Return Value
Remarks
Any existing file of the same name will be overwritten without warning.
A PEM format file will start with -----BEGIN CERTIFICATE-----.
See Also
VB6/C equivalent: X509_SaveFileFromString
[Contents] [Index]