How to Convert .Pfx Certificate to .Pem format
Conversion of.Pfx Certificate to .Pem format
In some of the network devices, it requires to use .pem format of the certificate while most of the Windows devices use .Pfx format. It is not difficult to convert .Pfx to .Pem certificate format.
Objective: Conversion of .Pfx to .Pem Certificate format.
Here I assume that you already have installed OpenSSL on your PC.
1- CD to C:\OpenSSL-Win64\bin
2- Copy your pfx file in the bin folder on the above path
3- Run the following command and this will generate a private key for the .pem certificate file
openssl pkcs12 -in 2020.pfx -nocerts -out key2020.pem
4- Run the following command to do the actual conversion of .Pfx to.Pem
openssl pkcs12 -in 2020.pfx -clcerts -nokeys -out cert2020.pem