Cryptography Tutorials - Herong's Tutorial Examples - Version 5.34, by Dr. Herong Yang
What Is PKCS#12?
This section describes what is PKCS#12 - One of the PKCS (Public Key Cryptography Standards) used to store a private key and its self-signed certificate together as a single file.
PKCS#12 is one of the PKCS (Public Key Cryptography Standards) devised and published by RSA Security. PKCS#12 is designed as the Personal Information Exchange Syntax Standard.
PKCS#12 can be used in the same way as JKS (Java KeyStore) to store a private key and its self-signed certificate together in a single file. In fact, the Java SE "keytool" supports two keystore types: "jks" and "pkcs12".
When you use "OpenSSL" to generate private keys and certificates, they are stored as individual separate files. But "OpenSSL" does offer the "openssl pkcs12" command to merge private keys and certificates into a PKCS#12 file.
The "openssl pkcs12" command is very important if you want exchange private keys and certificates between "keytool" and "OpenSSL". Read other sections to see my tutorial notes on this.
Visit PKCS page at rsa.comto read more about PKCS#8.
Last update: 2013.
Table of Contents