CryptoSys PKI Toolkit Manual
Pfx.MakeFile Method
Creates a simple PFX (PKCS-12) file from an X.509 certificate and (optional) encrypted private key file
Syntax
[C#]
public static int MakeFile(
string fileToMake,
string certFile,
string privateKeyFile,
string password,
string friendlyName,
bool excludePrivateKey
)
[VB.NET]
Public Shared Function MakeFile ( _
fileToMake As String, _
certFile As String, _
privateKeyFile As String, _
password As String, _
friendlyName As String, _
excludePrivateKey As Boolean _
) As Integer
Parameters
- fileToMake
- name of output file to be created
- certFile
- filename of the subject's X.509 certificate (required in all cases)
- privateKeyFile
- filename of the subject's encrypted private key in pkcs-8 format
- password
- password for private key file
- friendlyName
- friendly name identification for the subject (required)
- excludePrivateKey
- true to exclude the private key data (i.e. just include the certificate)
Return Value
Zero if successful or a non-zero error code.
[Contents] [Index]