CryptoSys PKI Toolkit Manual
X509.GetCertFromPFX Method (String, String)
Extracts an (unencrypted) X.509 certificate from a PKCS-12 PFX/.p12 file, saving the output directly as a new file.
Syntax
[C#]
public static int GetCertFromPFX(
string outputFile,
string inputFile
)
[VB.NET]
Public Shared Function GetCertFromPFX ( _
outputFile As String, _
inputFile As String _
) As Integer
Parameters
- outputFile
- Name of output file to be created
- inputFile
- Name of the PKCS-12 file
Return Value
If successful, it returns the number of bytes written to the output file; otherwise it returns a negative
error code
See Also
VB6/C equivalent: X509_GetCertFromPFX
[Contents] [Index]