解决php报错:error setting certificate verify locations

错误提示

[0] Exception in CurlClient.php line 73
error setting certificate verify locations:
CAfile: D:\xampp71\apache\bin\curl-ca-bundle.crt
CApath: none

解决方式:下载cacert.pem文件
下载地址 https://curl.haxx.se/ca/cacert.pem
在php.ini中引入即可,修改如下
openssl.cafile=”D:\xampp71\apache\bin\cacert.pem”

发表评论