-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cURL error 60: SSL certificate problem: certificate has expired #174
Comments
Hello, Frankly I never ran into this error, so only I can guess that something could changed in curl/php curl extension or guzzle. What is your OS? What's your php version? Which guzzle do you use? Why do you set Note that v1 branch is not maintained anymore, you should upgrade to v2 |
Hello, thank you very much for your quick reply. The project is running with php 7.0 on Debian 9. Guzzle version is I did set Since it is a very old project, I think that we are just going to do an update on all of our old dependencies. Thank you for your time helping me :-) |
Did you try to run the guzzle directly avoiding the library? Does it have same error?
Refer to the guzzle docs how to do this 😉 you can download the cafile from https://curl.se/docs/caextract.html |
Hello,
I have the
1.13.0
version installed, and I create my client the following way :This code has been running for several years, and since yesterday, my app crashes when I try to send a notification.
Here is the error I get :
object(OneSignal\Exception\OneSignalException)#58 (7) { ["message":protected]=> string(119) "cURL error 60: SSL certificate problem: certificate has expired (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(73) "/var/www/html/bop_api/vendor/norkunas/onesignal-php-api/src/OneSignal.php" ["line":protected]=> int(114) ["trace":"Exception":private]=> array(5) { [0]=> array(6) { ["file"]=> string(77) "/var/www/html/bop_api/vendor/norkunas/onesignal-php-api/src/Notifications.php" ["line"]=> int(77) ["function"]=> string(7) "request" ["class"]=> string(19) "OneSignal\OneSignal" ["type"]=> string(2) "->" ["args"]=> array(4) { [0]=> string(4) "POST" [1]=> string(14) "/notifications" [2]=> array(1)
It seems to be related to an expired SSL certificate, but I do not understand which certificate is causing the issue, since my hosting has a valid ongoing certificate
Thank you in advance for your help
The text was updated successfully, but these errors were encountered: