Search code examples
iosapple-push-notificationsamazon-sns

Export push notification certificate as P12


Normally, I can export the certificate from the keychain that I download from the apple member center as a p12 file. However, it seems that Apple may have changed something?!

I require it as a p12 to import it into Amazon's SNS service. I have tried converting to PEM files but it's producing an error on the console.

enter image description here


Solution

  • You can't export to a .p12 because you don't have the private key installed on your machine (if you did, you would have an "expand" arrow next to the certificate like your iPhone Distribution certificate has.) You will need to get the private key from the machine that generated the certificate before you export.