Forked from Integralist/convert-p12-pem-formats.bash
Created
September 23, 2022 13:41
-
-
Save szigetics/ab85ae17272ce77142e710c8703f7df3 to your computer and use it in GitHub Desktop.
Convert a P12 into a PEM and vice versa
This file contains hidden or 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 p12 to pem | |
| openssl pkcs12 -in certificate.p12 -out certificate.pem -clcerts -nodes | |
| # Convert pem to p12 | |
| openssl pkcs12 -export -in certificate.pem -out certificate.p12 -passout pass:password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment