To convert a .pfx certificate to a .pem file enter the following:
openssl pkcs12 -in certificate.pfx -out certificate.pem -nodes
Just random Linux dumps I don't want to remember ;-)
To convert a .pfx certificate to a .pem file enter the following:
openssl pkcs12 -in certificate.pfx -out certificate.pem -nodes