X509.SaveFileFromString Method
Create a new X.509 certificate file from a base64 string representation.
Syntax
[C#]
public static int SaveFileFromString(
string newCertFile,
string certString,
bool inPEMFormat
)
[VB]
Public Shared Function SaveFileFromString (
newCertFile As String,
certString As String,
inPEMFormat As Boolean
) As Integer
Parameters
- newCertFile String
- Name of new certificate file to be created.
- certString String
- String containing certificate data in base64 format.
- inPEMFormat Boolean
- True to save in base64 PEM format, or false to save in binary DER 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]