Navigation

key

Extract certificate and private key from PFX file

export the private key:
openssl pkcs12 -in certname.pfx -nocerts -out key.pem -nodes

export the certificate:
openssl pkcs12 -in certname.pfx -nokeys -out cert.pem

remove the passphrase from the private key:
openssl rsa -in key.pem -out server.key

Tags: 
Subscribe to key