Created
August 20, 2016 04:51
-
-
Save dmpatel151282/b692d3b6432f6b6b1fda8d07698eadd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Convert between PEM and P12 | |
PEM | |
It is an ASCII format and can be opened with a text editor. It is used by most SSL-based tools. Key and certificate are two separate files. | |
P12 | |
Acutally: Pkcs12 is used by most browsers. Key and certificate are in one file. | |
PEM to P12 | |
The key and the certificate are require. | |
openssl pkcs12 -export -in usercert.pem -inkey userkey.pem -out bundle.p12 | |
P12 to PEM | |
openssl pkcs12 -in bundle.p12 -out userkey.pem -nodes -clcerts | |
The resulting file contains both the key and certificate. Use a text editor to split into two files again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment