Friday, September 23, 2011

Stripping key/certificates from pkcs12 file.

# Extract the certificate
openssl pkcs12 -in source.p12 -clcerts -nokeys -out destination.crt

# Extract the key
openssl pkcs12 -in source.p12 -nocerts -out destination.pem

# Remove passphrase from the key
openssl rsa -in source.pem -out destination.key

0 Comments:

Post a Comment

<< Home