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.
Step 1: Navigate to the OpenSSL directory
CD to C:\OpenSSL-Win64\bin
cd C:\OpenSSL-Win64\bin
Step 2: Copy your PFX file
Copy your pfx file in the bin folder on the above path.
Step 3: Extract the private key
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
Step 4: Convert PFX to PEM
Run the following command to do the actual conversion of .Pfx to .Pem:
openssl pkcs12 -in 2020.pfx -clcerts -nokeys -out cert2020.pem