edamov / pushok

PHP client for Apple Push Notification Service (APNs) - Send push notifications to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key)
MIT License
368 stars 119 forks source link

How to set certificate root authority? #126

Closed upngo closed 3 years ago

upngo commented 3 years ago

I've set the .pem cert path, but there's no option to set the root certification authority - GeoTrust_Global_CA.pem As described by https://developer.apple.com/library/archive/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG31

As a result I get this error SSL certificate problem: unable to get local issuer certificate

If I add this to /etc/ssl/certs it doesn't help either

baden32 commented 3 years ago

I think you're refering to an old reference about apns not related to the new apns/http2. Useful info can be found here https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/

However, I also have y problem to understand how to setup the AAAA Certificate (I just opened a new issue about this). Regards Joel

marcorocca commented 3 years ago

I think you can use this method: https://github.com/edamov/pushok/issues/124#issuecomment-778685800

upngo commented 3 years ago

walkthrough of solution https://github.com/edamov/pushok/issues/128