X509.ReadCertStringFromPFX Method
Read an X.509 certificate into a base64 string from PKCS-12 PFX/.p12 data.
Syntax
[C#]
public static string ReadCertStringFromPFX(
string inputFile,
string password
)
[VB]
Public Shared Function ReadCertStringFromPFX (
inputFile As String,
password As String
) As String
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
VB6/C equivalent: X509_ReadCertStringFromPFX
[Contents] [Index]