My ultimate objective is to sign my exe.
For this i would need a certificate. From my company's pKI i got a .cer file and .p7b (certificate chain) file.
Now to sign an exe i need a .pfx file. So i want to convert a .cer file to .pfx file
For this i donwloaded openssl distribution.
Now issuing this command openssl pkcs12 -export -in certificatename.cer -inkey privateKey.key -out certificatename.pfx -certfile cacert.cer is resulting into unable to load certificates.
Does anyone have any hints on this ?
best Regards, Saurav
So the trick was to perform the following steps if you want to sign an exe after you got a .cer file
For openssl commands to convert check this
https://www.sslshopper.com/ssl-converter.html
For signtool commands check this
https://msdn.microsoft.com/en-us/library/windows/desktop/aa388170(v=vs.85).aspx
cheers,
Saurav
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With