Convert PFX to Seperate Key/Cert Files

Using openssl to extract key and certificate files from a .pfx

To extract the private key…

openssl pkcs12 -in [filename.pfx] -nocerts -out [private.key]

To extract the certificate…

openssl pkcs12 -in [filename.pfx] -clcerts -nokeys -out [certificate.crt]

To decrypt the private key…

openssl rsa -in [private.key] -out [decrypted.key]