Click here to Skip to main content
14,429,492 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to convert a Certificate file with extension Cer to PFX file using openssl. Name of my certificate file (say x.Cer) and I need to change it to pfx file (say x.pfx)

What I have tried:

openssl  -in x.Cer -export -out x.pfx
Posted
Updated 21-Jun-19 3:26am
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

I did it like this, you will need a private key too:

Convert CER and Private Key to PFX
openssl pkcs12 -export -in my.cer -inkey privateKey.key -out my.pfx -certfile  cacert.cer
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100