maroph icon

OpenSSL: PKCS12 file: extract private/public key

maroph | PRO | 08/30/16 11:57:22 AM UTC | 0 ⭐ | 439 šŸ‘ļø | Never ā° | []
Bash |

220 B

|

None

|

0 šŸ‘

/

0 šŸ‘Ž

# Extract private key from PKCS12 file
openssl pkcs12 -in keystore.p12 -nocerts -nodes -out privateKey.pem
Ā 
# Extract certificates from PKCS12 file
$ openssl pkcs12 -in keystore.p12 -clcerts -nokeys -out publicKey.pem

Comments