Extract key/cert from PFX
- Extract key from pfx file
openssl pkcs12 -in /path/to/file.pfx --nocerts -out /path/to/exported.key
- Extract certificate from pfx file
openssl pkcs12 -in /path/to/file.pfx -clcerts -nokeys -out /path/to/cert.crt
- decrypt private key if desired.
openssl rsa -in /path/to/exported.key -out /path/to/decrypted.key
No Comments