Azure Notification Hub unable to upload .p12 for APN

早过忘川 提交于 2019-11-29 01:20:40
aahsanali

I was having the same issue while uploading the certificate on the backend and finally found the solution after lot of struggling. Do the following:

  1. Select keys from your keychain
  2. Locate desired push private key
  3. Click the small arrow to expand the key & profile
  4. Now select the certificate only (this is a crucial step) no both the key & certificate ONLY SELECT CERTIFICATE and click for export
  5. Set password for your exported certificate and upload

Have a look at this picture for reference:

This is an old question but I thought I would post something that worked for me as well. Seeing as the .p12 file was created by another part of our company I was not able to get the .p12 file re-exported in the correct manner.

Instead I imported the .p12 to my local certificate store (windows) and then re-exported as a pfx.

Take a note of where the certificate is stored

Then, Use the MMC tool to view and export your certificate, making sure to export the private key as part of the pfx.

(You should probably delete the certificate from your local machine after the export is complete.)

After that you should be able to import your new pfx file into azure via the portal.

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