Azure Notification Hub unable to upload .p12 for APN

流过昼夜 提交于 2019-12-18 03:05:33

问题


I am not able to upload a .p12 for APN. and this is the error message I received. Any idea what cause this error?

SubCode=40000. Failed to validate credentials with APNS. Error is The credentials supplied to the package were not recognized..TrackingId:b18f483e-6285-9d5b-895c-12e2fcc26dcf_M1_G12,TimeStamp:4/21/2014 3:16:19 AM

回答1:


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:




回答2:


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.



来源:https://stackoverflow.com/questions/23190517/azure-notification-hub-unable-to-upload-p12-for-apn

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