bugsnag / bugsnag-php

BugSnag error monitoring and crash reporting tool for PHP apps
https://docs.bugsnag.com/platforms/php
MIT License
554 stars 77 forks source link

SSL certificate problem: self-signed certificate in certificate chain #669

Closed noahjames404 closed 7 months ago

noahjames404 commented 7 months ago

I recently had trouble debugging bugsnag to my laravel project and it doesn't even show any errors while testing the code. Turns out, it was being thrown at the Guzzle client and tracing the issue here from bugsnag/bugsnag-laravel. Errors were logged at the PHP error_log which isn't visible on laravel loggers.

cURL error 60: SSL certificate problem: self signed certificate in certificate chain

Most of the solutions I found suggested disabling the SSL verification of Guzzle but I don't find this solution helpful for me. Instead, I updated my curl.cainfo in php.ini and downloaded the file from https://curl.se/docs/caextract.html. I then restarted my php service.

That solves the issue. I'm writing this here for other devs to see.