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