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 i
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
OneSignal had a service issue that caused certificates to be incorrectly detected as invalid. It is now fixed, as noted in this status update.
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://imgur.com/a/JQQya Or the "I'd like to replace my production .p12 certificate" check box if you are replacing the certificate like this: http://imgur.com/a/hRIqJ
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.