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
32 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> 1Note: 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: