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.NET]
Public Shared Function ReadCertStringFromPFX ( _
inputFile As String, _
password As String _
) As String
Parameters
- inputFile
- filename of a PFX file, or a string containing its PEM textual representation.
- password
- password for PFX or "" if certificate is not encrypted
Return Value
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]