Convert PFX to PEM
Output Combined Data
openssl pkcs12 -nodes -in file.pfx -out file.pem
Key and certificate combined in single file
Output Key and Certificate
openssl pkcs12 -nodes -in file.pfx -nocerts -out star.contoso.org.key
Extract the Private Key
openssl pkcs12 -clcerts -in file.pfx -nokeys -out star.contoso.org.pem
Extract the Certificate