From MgmtWiki
Revision as of 21:22, 1 July 2020 by Tom (talk | contribs) (References)

Jump to: navigation, search

Full Title

PKCS #12: Personal Information Exchange Syntax", PKCS Version 1.1, December 2012.


The full PKCS #12 standard is very complex. It enables buckets of complex objects such as PKCS #8 structures, nested deeply. But in practice it is normally used to store just one private key and its associated certificate chain.


You need .pfx file to install https on website for Microsoft's or many other web servers.

If you have two separate files: certificate (.cer or pem) and private key (.crt) they need to be converted to P12 or PFX format.


You will need to use openssl. A password to protect the private key is required by some web servers later in a file. It would be good practice to create a file with the password at this point before you build the PKCS 12 file. The OpenSSL command line app does not display any characters when you are entering your password. Just type it then press enter and you will see that it is working. This password MUST be well protected from disclosure.

 openssl pkcs12 -export -out -inkey -in

The key file is just a text file with your private key in it.

If you have a root CA and intermediate certs, then include them as well using multiple -in params

 openssl pkcs12 -export -out -inkey -in -in intermediate.crt -in rootca.crt

You can install openssl from here: openssl binaries.