How to Convert Certificate from .pfx to .cer Format on Windows 10?

Convert PFX Certificate to CER

Converting a certificate from PFX (Personal Information Exchange) to CER (Certificate) format using OpenSSL on Windows 10 is a simple process that can be accomplished with a few command-line instructions:

If you don’t already have OpenSSL installed, download it from the official OpenSSL website or a trusted source.

    • Press Win + R to open the Run dialog box.
    • Type cmd and press Enter to open the Command Prompt.
    • Change the directory to where OpenSSL is installed. For example:
    cd C:\OpenSSL-Win64\bin
    • To extract the certificate and private key from the PFX file, use the following OpenSSL command:
    openssl pkcs12 -in yourfile.pfx -out yourfile.pem -nodes

    Replace yourfile.pfx with the name of your PFX file.

    Enter the password you use to protect the PFX file.

    The certificate has been successfully converted into cer format if you can see the command prompt again.

    Following the above steps, you can easily extract the certificate from a PFX file and save it in the CER format.

    Also Read: How to Convert a PFX Certificate to JKS, P12, CRT?

    Code Signing Tutorials

    Cheap Code Signing Certificates

    Prevent Code Tampering and Authenticate Code Integrity by Digitally Sign your Code with Trusted Code Signing Certificates.

    Starting at Just $215.99/Year
    Janki Mehta

    Janki Mehta

    Janki Mehta is a Cyber-Security Enthusiast who constantly updates herself with new advancements in the Web/Cyber Security niche. Along with theoretical knowledge, she also implements her practical expertise in day-to-day tasks and helps others to protect themselves from threats.