Search code examples
iospush-notificationapple-push-notifications

Changing password on p12 file


I was forwarded a p12 file from a client with the push cert.

Can I change the password of this p12 file without any ramifications and if yes, can I use something like this:

openssl pkcs12 -in Certificates.p12 -out temp.pem -passin pass: -passout        
pass:temppassword
openssl pkcs12 -export -in temp.pem -out Certificates-final.p12 -passin     
pass:temppassword -passout pass:newpa­ssword
rm -rf temp.pem

I found this on this website here


Solution

  • There will be no problem.

    PFX is an encrypted container, changing the password of the container will have no effect on the certificates inside the container.