Azure Notification Hub unable to upload .p12 for APN

user3512319 picture user3512319 · Apr 21, 2014 · Viewed 8.8k times · Source

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

Answer

aahsanali picture aahsanali · Sep 25, 2014

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:

enter image description here