Export the private key
openssl pkcs12 -in certificate.pfx -out certificate.key -nocerts -nodes
Take out the encryption from the private key
openssl rsa -in certificate.key -out certificate_new.key
Export the SSL certificate
openssl pkcs12 -in certificate.pfx -out certificate.pem -nokeys -clcerts