You can use following commands to extract public/private key from a PKCS#12 container:
- Private key:
openssl pkcs12 -inyourP12File.pfx-nocerts -outprivateKey.pem - Certificates:
You can add -nocerts to only output the private key or add -nokeys to only output the certificates.openssl pkcs12 -inyourP12File.pfx-clcerts -nokeys -outpublicCert.pem - openssl pkcs12 -in Sample.pfx -out Sample.pem -nodes
No comments:
Post a Comment