"cURL error 77: error setting certificate verify locations" 原因不明

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

我 运行 PHP 7.1 Windows 并且看到一个奇怪的行为。当使用 cURL 进行 API 调用时,一切似乎都有点工作。在某个随机间隔后,调用开始失败并出现此错误。

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)

重新启动 Apache 似乎可以解决问题。然后在某个随机时间后,它会无缘无故地再次出现。有谁知道这里会发生什么?

经过更多故障排除后,我能够将问题归结为 xdebug 模块。我禁用了 xdebug,现在 SSL 连接正常工作。