How to Convert .Pfx Certificate to .Pem format

0

Conversion of .Pfx Certificate to .Pem format

In some of the network devices, it requires to use .pem format of certificate while most of the Windows devices use .Pfx format. It is not difficult to convert .Pfx to .Pem certificate format.

PFX to PEM Conversion
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
cd C:\OpenSSL-Win64\bin
2- Copy your pfx file in bin folder on 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 actual conversion of .Pfx to .Pem
openssl pkcs12 -in 2020.pfx -clcerts -nokeys -out cert2020.pem

 

Leave A Reply

Your email address will not be published.