CryptoSys PKI Pro Manual

X509.GetCertFromPFX Method (String, String)

Extract 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]

[PREV: X509.GetCertFromP7Chain Method...]   [Contents]   [Index]   
   [NEXT: X509.GetCertFromPFX Method (String, String, String)...]

Copyright © 2004-21 D.I. Management Services Pty Ltd. All rights reserved. Generated 2021-10-01T09:03:20Z.