thebitguru
thebitguru

Reputation: 1042

"cURL error 77: error setting certificate verify locations" for no obvious reason

I am running PHP 7.1 on Windows and seeing a weird behavior. When using cURL to make API calls, everything seems to work for a little bit. After some random interval, the calls start failing with this error.

cURL error 77: error setting certificate verify locations: CAfile: c:\<path intentionally removed>\cacert.pem CApath: none (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Restarting Apache seems to fix the issue. Then after some random time, it starts showing up again for no obvious reason. Does anyone know what might be going on here?

Upvotes: 2

Views: 2532

Answers (1)

thebitguru
thebitguru

Reputation: 1042

After more troubleshooting, I was able to boil down the issue to the xdebug module. I disabled xdebug and now the SSL connections are working consistently.

Upvotes: 1

Related Questions