PHP:cURL error 60: SSL certificate unable to get local issuer certificate

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/loophome/article/details/83112364

导致该问题的原因在于没有配置curl.cainfo,该配置位于php.ini中。

解决方案:

1)下载cacert.pem

https://curl.haxx.se/ca/cacert.pem

2)配置php.ini

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo = 【你的绝对路径】

猜你喜欢

转载自blog.csdn.net/loophome/article/details/83112364