1. full convertion from .pfx to .pem
openssl pkcs12 -in file.pfx -out file.pem
2. certificate convertion onlyopenssl pkcs12 -in file.pfx -out certificate_only.pem -nokeys
3. key convertion onlyopenssl rsa -in file.pfx -out key.pem