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

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

3

2 Answers

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> 
1

Note: as already said, you should have a password that come with the pfx file.

In case they have not shared with you any password, maybe the password is just an empty one. In this case, try with -passin pass: to express an empty password.

Example:

openssl pkcs12 -in input.p12 -out output.pem -nodes -passin pass: 

Source:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like