Pfx.MakeFile Method (String, String, String, String, String, Boolean)
Create a simple PFX file from an X.509 certificate and encrypted private key file [deprecated]
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 (optional)
- excludePrivateKey
- true to exclude the private key data (i.e. just include the certificate)
Return Value
[Contents] [Index]