How to convert .Crt files to .PFX or .CER

How to Convert SSL For Free using OpenSSL

SSL converter, Openssl convert cer to pem, Cer to pfx, Convert cer to pem, Convert cer to pfx, Convert pem to pfx, Convert p7b to pem, Convert p7b to pfx … more

The Best way to convert SSL is OpenSSL.
  • First You need to Download OpenSSL Software
  • Install OpenSSL in your PC, Once installed
  • Go to below path and open Openssl.exe
  • C:\Program Files (x86)\GnuWin32\Openssl.exe
  • openssl free rushtime 
  •  Enter the below command, before that change the path to files where you saved
  • pkcs12 -export -out C:\Users\username\Downloads\folder\example.pfx -inkey C:\Users\username\Downloads\folder\private.key -in C:\Users\username\Downloads\folder\certificate.crt
  • Next it will ask for password enter as your wish and this password needs to be entered while installing .pfx
  • Once this command run success fully .pfx file will be generated in path you mentioned  “C:\Users\username\Downloads\folder\example.pfx 
  • Take that and Install the certificate in IIS or any other webserver

Use this SSL Converter to convert SSL certificates to and from different formats such as pem, der, p7b, and pfx. Different platforms and devices require SSL certificates to be converted to different formats. For example, a Windows server exports and imports .pfx files while an Apache server uses individual PEM (.crt, .cer) files. To use the SSL Converter, just select your certificate file and its current type (it will try to detect the type from the file extension) and then select what type you want to convert the certificate to and click Convert Certificate.

OpenSSL Convert PEM

Convert PEM to DER

x509 -outform der -in C:\users\username\downloads\folder\certificate.pem -out C:\users\username\downloads\folder\certificate.der

Convert PEM to P7B

crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b -certfile CACert.cer

Convert PEM to PFX

pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt

OpenSSL Convert DER

Convert DER to PEM

x509 -inform der -in C:\users\username\downloads\folder\certificate.cer -out C:\users\username\downloads\folder\certificate.pem

OpenSSL Convert P7B

Convert P7B to PEM

pkcs7 -print_certs -in certificate.p7b -out certificate.cer

Convert P7B to PFX

pkcs7 -print_certs -in certificate.p7b -out certificate.cer

pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer

OpenSSL Convert PFX

Convert PFX to PEM

pkcs12 -in C:\users\username\downloads\folder\certificate.pfx -out C:\users\username\downloads\folder\certificate.cer -nodes

3 thoughts on “How to convert .Crt files to .PFX or .CER

  • January 14, 2019 at 11:38 am
    Permalink

    Wonderful information. Very useful. Thanks a lot

    Reply

Leave a Reply