Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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 2:26am
v2

1 solution

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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900