Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Notification Hub unable to upload .p12 for APN

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
like image 460
user3512319 Avatar asked Apr 21 '14 03:04

user3512319


People also ask

How do I get my APN P12 certificate?

Generate APNS .p12 certificateDouble click the Development certificate generated in the previous step to add it to Keychain Access. Go to Keychain Access, select login keychain and My Certificate from the side menu. Find app certificate and right click to export it.

How do I create a P12 certificate for push notifications?

1.1 Go to https://developer.apple.com/account and login into the account. 1.2 Once you are logged into your account, click on the “Certificates, ID & Profiles” tab. 1.3 Click on the “Certificates +” icon. 1.5 Create a new certificate or click on an existing one from the website Push ID field.

How do I send notifications to Azure notification hub?

To set up Windows Push Notification Service (WNS): In the Azure portal, on the Notification Hub page, select Windows (WNS) from the left menu. Enter values for Package SID and Security Key. Select Save.

How do I register my device in Azure notification hub?

You just need to log into Azure portal, choose your App Service, then click "Settings > Push" to configure your Notification Hub.


1 Answers

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

like image 81
aahsanali Avatar answered Oct 11 '22 11:10

aahsanali