Forked from Integralist/convert-p12-pem-formats.bash
Created
November 29, 2023 08:25
-
-
Save hemanth22/fdc99b9089a0b363130a2636ce1617b9 to your computer and use it in GitHub Desktop.
Convert a P12 into a PEM and vice versa
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 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