Can't convert .p12 to .pem with openSSL

After doing this:

openssl pkcs12 -in path.p12 -out newfile.crt.pem -clcerts -nokeys 

      

I receive a request with descriptions of options.

After running this

openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes

      

I will be prompted to enter "Enter the import password:". What is this import password? I tried the one I installed from a firefox backup and it answered "MAC validation error: Wrong password?" I am sure the password is correct because I tested it by importing it again in firefox.

I got commands from answering this question !

+3


source to share


1 answer


I experienced the same thing too. Try putting your password on the command line like this. This works for me:



openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes -password pass:<mypassword>

      

0


source







All Articles