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

feat/dynamic curl options #110

Closed tobiasbambullis closed 3 years ago

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.05%) to 81.844% when pulling aa77a121bb273d5cb652f8e57e059b72f3d47617 on tobiasbambullis:fix/dynamic-curl-options into b69afbc6f5a79902d3eb819352a9a2c6e83ee976 on edamov:master.

lvandyk commented 3 years ago

Can we please merge this pull request? I'm having SSL issues: SSL certificate problem: unable to get local issuer certificate and would like to disable VERIFY_PEER on cURL.

lvandyk commented 3 years ago

Thank you for the quick turn around Arthur (and this awesome library)!

rekliner commented 3 years ago

Just confirming for anyone else that this fixed my ssl issues that mysteriously cropped up in the last month with apple. Adding the option to the instantiation fixed it like below. Thank you for making the world a better place one repository at a time! $client = new Client($authProvider, $production = true, [CURLOPT_SSL_VERIFYPEER=>false]);