Last active
October 17, 2023 13:10
-
-
Save kedwards/d452c1d2209b6073d3a57f30df1f8597 to your computer and use it in GitHub Desktop.
Revisions
-
kedwards renamed this gist
Oct 17, 2023 . 1 changed file with 7 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,15 @@ # PEM to PKCS12 **SSL – Convert PEM and private key to PKCS#12** Convert cert.pem and private key key.pem into a single cert.p12 file, key in the key-store-password manually for the .p12 file. ``` openssl pkcs12 -export -out cert.p12 -in cert.pem -inkey key.pem ``` No password ``` openssl pkcs12 -export -out cert.p12 -in cert.pem -inkey key.pem -passout pass: -nokeys ``` Password is 123 ``` openssl pkcs12 -export -out cert.p12 -in cert.pem -inkey key.pem -passout pass: 123 ``` -
kedwards created this gist
Oct 17, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # Convert cert.pem and private key key.pem into a single cert.p12 file, key in the key-store-password manually for the .p12 file. ``` openssl pkcs12 -export -out cert.p12 -in cert.pem -inkey key.pem ``` # No password for cert.p12 ``` openssl pkcs12 -export -out cert.p12 -in cert.pem -inkey key.pem -passout pass: -nokeys ``` # Password 123 for cert.p12 ``` openssl pkcs12 -export -out cert.p12 -in cert.pem -inkey key.pem -passout pass: 123 ```