How to generate valid APNS Certificate (.p12) for use in GCM for iOS?

一个人想着一个人 提交于 2019-12-02 19:04:51

Here's my solution, without the terminal !

  • delete your actual certificate ( in Keychain ) : "Apple Development IOS Push Service" & "Apple Production IOS Push Service"

  • Go to Apple Developer, Identifiers, App IDs, Select "YourApp", Edit, Push Notification and download the 2 certificates (dev & prod)

  • import these 2 certificates in Keychain

  • in Keychain, go to "My Certificates", find the "Apple Development IOS Push Service" & "Apple Production IOS Push Service", click on the arrow to expand the Certificate + Key

  • Select both the the Certificate + Key, Right click "Export 2 items", you have your .p12 valid certificate ready for upload to GCM Services

This link helped me : http://faq.appaloosa-store.com/knowledgebase/articles/61785-how-to-generate-push-notification-p12-file

For anyone still having this issue, the solution for me was to not select both the key and the certificate for export - rather just export the certificate which ALREADY includes the key.

This problem comes when we use Firefox to upload the .p12 file. In Chrome I am able to upload the same file.

Abdul Karim

you can select only one also to export in .p12 format..

macApplication > Keychain Access > My Certificates > Export in .p12 format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!