Click or drag to resize

X509ReadCertStringFromPFX Method

Read an X.509 certificate into a base64 string from PKCS-12 PFX/.p12 data.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static string ReadCertStringFromPFX(
	string inputFile,
	string password
)

Parameters

inputFile  String
filename of a PFX file, or a string containing its PEM textual representation.
password  String
password for PFX or "" if certificate is not encrypted

Return Value

String
String in continuous base64 format, or an empty string on error.
Remarks
Only supports weak 40-bit RC2 encryption for the certificate.
See Also