Mac verify error: invalid password? Converting .p12 to .pem using openssl pkcs12

openssl, pkcs#12

Solution

You should have a password that come with the pfx file.

Try to put the password in the command line like this. Then you'll get both the private key and certificate in pem format:

openssl pkcs12 -nocerts -out PushKey.pem -in moo.p12 -nodes -password pass:<mypassword>

Problem

I keep getting this error: ``` Mac verify error: invalid password? ``` For these two commands: ``` openssl pkcs12 -nocerts -out PushKey.pem -in moo.p12 openssl pkcs12 -nocerts -out PushKey.pem -in moo.p12 -nodes ``` moo.p12 is issued by apple for push notifications

Original source