4

After running this:

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

I get prompted with the option descriptions.

After running this

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

I get prompted with "Enter Import Password:". What is this import password? I tried the one I set from the firefox backup and it responded with "Mac verify error: invalid password?". I'm sure that the password is correct because I tested it by importing it again into firefox.

I got the commands from the answer to this question!

Community
  • 1
  • 1
nomadStack
  • 405
  • 2
  • 4
  • 11
  • Maybe it is possible, but for my case the .p12 file was only necessary for the authentication at the CA website where I created my account. After authenticating I could generate a key and a certificate in .pem format which I could use on my server. That was my confusion. – nomadStack Jan 15 '15 at 16:30

1 Answers1

0

I experienced the same thing too. Try to put the password in the command line like this. It works for me:

openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes -password pass:<mypassword>
xelat
  • 386
  • 3
  • 6