pfxMakeFile
Create a PFX (PKCS-12) file from an X.509 certificate and (optional) encrypted private key file.
Syntax
[VBA]
Public Function pfxMakeFile ( _
szFileOut As String, _
szCertList As String, _
Optional szKeyFile As String = "", _
Optional szPassword As String = "", _
Optional szFriendlyName As String = "", _
Optional nOptions As Long = 0 _
) As Long
Parameters
- szFileOut
- Name of output file to be created.
- szCertList
- filename of the subject's X.509 certificate (or a string containing the certificate in base64 representation)
followed by optional extra certificates to be included separated by a semicolon (;).
- szKeyFile
- Filename of the subject's encrypted private key in pkcs-8 format (optional).
- szPassword
- Password for private key file and new PFX file.
- szFriendlyName
- Friendly name identification for the subject (optional).
- nOptions
- Specialist options
PKI_PFX_CLONE_KEY
PKI_PFX_PLAIN_CERT
PKI_PFX_STRONG_CERT
PKI_PFX_AES256_SHA256
PKI_PFX_DOUBLE_ENCRYPT
PKI_KEY_FORMAT_PEM
PKI_PFX_ALT_FORMAT
Return Value
Long: Zero on success else a nonzero error code