AkbarAhmed.com

Engineering Leadership

Converting a .p12 SSL Code Signing Certification to the .pfx format is amazingly simply. I wasted a couple of hours looking on Google without luck. So I hope this post saves someone else the time I wasted.

The facts:
1.) A .p12 and .pfx are the exact same binary format, although the extension differs.
2.) Based on #1, all you have to do is change the file extension.

On Windows, open a command prompt and cd to the directly that contains the .p12 file. Then run the following command:

rename CompanyX.p12 CompanyX.pfx

Categories: SSL

12 thoughts on “Convert .p12 to .pfx

  1. raul garcia's avatar raul garcia says:

    Thank for this info. (it really works)

    Raul
    Buenos Aires Argentina

    1. Year is 2020 and you saved me. Thanks you!

  2. Soren Ullidtz's avatar Soren Ullidtz says:

    Thanks you just saved me a couple of hours 🙂

  3. Ramac's avatar Ramac says:

    Great, thank you, you saved my time !

  4. andrejkvasnica's avatar andrejkvasnica says:

    1000x thanks!

  5. Unknown's avatar Ronald says:

    Thanks for posting this – saved me some time as well!

  6. Jay's avatar Jay says:

    Thanks, I was wondering if a p12 and pfx are the same. Saved me some time as well. all these Cert formats are very confusing if you don’t deal with them regularly.

  7. Kurt's avatar Kurt says:

    OK, but how to convert back from PFX to P12? Just kidding… thank you for this post, I slapped my forehead so hard after wasting even more time than you did.

  8. Enver Hassim's avatar Enver Hassim says:

    Thanks so much for this post – saved me hours of googling, etc.
    Enver
    Cape Town, South Africa

  9. Jürgen Struck's avatar Jürgen Struck says:

    THANK YOU!!!

  10. simon's avatar simon says:

    i did find one wrinkle – if your private key is encrypted, put the p12 itself has no password, then windows trust store/azure trust vault will not process it, even though other programs manage to do so. Leave the private key and certificate unencrypted, and put a password on the pfx.

Leave a reply to Enver Hassim Cancel reply