Click or drag to resize

X509SaveFileFromString Method

Create a new X.509 certificate file from a base64 string representation.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int SaveFileFromString(
	string newCertFile,
	string certString,
	bool inPEMFormat
)

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

Int32
Zero if successful or non-zero error code
Remarks
Any existing file of the same name will be overwritten without warning.

A PEM format file will start with -----BEGIN CERTIFICATE-----.

See Also