imrealashu
imrealashu

Reputation: 5099

Certificate being rejected by Apple

While configuring certificate for Push Notification on my ios build of cordova project using OneSignal, the certificate is getting rejected every time I'm trying to configure it.
I've followed steps mentioned in https://documentation.onesignal.com/docs/generate-an-ios-push-certificate
enter image description here

I've tried using OneSignal Provisionator Tool, and generated certificate using KeyChain access as well without any result.

Upvotes: 10

Views: 2246

Answers (3)

Ahmed Saeed
Ahmed Saeed

Reputation: 645

Ok, I contacted the support and here is a troubleshoot for future reference:

1.With your newest certificate, try renaming it to something different than previous certificates and then uploading it again.

2.Also, some users have reported that their security software blocks this from uploading, please make sure that is not the case.

3.Please make sure you are uploading a .p12 Push Certificate and not a Distribution Certificate or anything else besides a .p12 Push Certificate. Just click the "Choose File..." button if this is your first time uploading like this: https://i.sstatic.net/RAtgw.jpg Or the "I'd like to replace my production .p12 certificate" check box if you are replacing the certificate like this: https://i.sstatic.net/w4brz.jpg

4.You can generate one with OneSignal provisionator tool or if you have been and it is not working, you will need to try to generate one manually. You can follow this Generate iOS certificate doc step by step to generate certificate, I followed it and uploaded it successfully.

If it is still not working, you can contact them providing the p12 cert to them with password and OneSignal AppID. they may upload it for you as soon as they can.

Upvotes: 1

Gdeglin
Gdeglin

Reputation: 12618

OneSignal had a service issue that caused certificates to be incorrectly detected as invalid. It is now fixed, as noted in this status update.

Upvotes: 0

algrid
algrid

Reputation: 5954

You can test APNS connection with this script:

https://gist.github.com/greencoder/16d1f8d7b0fed5b49cf64312ce2b72cc

This script requires your key and certificate in pem format. To convert from p12 use

openssl pkcs12 -in PushCertKey.p12 -out PushCertKeyNoCrypt.pem -nodes

Upvotes: 1

Related Questions