X509SaveFileFromString Method |
Create a new X.509 certificate file from a base64 string representation.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int SaveFileFromString(
string newCertFile,
string certString,
bool inPEMFormat
)
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
Int32Zero if successful or non-zero
error code
RemarksAny existing file of the same name will be overwritten without warning.
A PEM format file will start with -----BEGIN CERTIFICATE-----.
See Also