As we all know that different platforms and devices require SSL certificates in different formats, for example a Windows server exports and imports .pfx files whereas an Apache server uses individual PEM (.crt, .cer) files for SSL.

Using the OpenSSL utility, we can easily convert SSL certificates in different formats from PFX to PEM or vice-versa.

You can use the following OpenSSL commands to convert SSL certificate to different formats on your own machine ::