Aipp_SecurityBlog 信言不美,美言不信。善者不辩,辩者不善。知者不博,博者不知。
cURL error 60: SSL certificate problem: unable to get local issuer certificate
发表于 2018-5-24 | | experience

php里curl报错

cURL error 60: SSL certificate problem: unable to get local issuer certificate(see http://curl.haxx.se/libcurl/c/libcurl-errors.html)


解决办法:

下载curl证书放到php目录extras\ssl\下

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

然后打开php.ini文件,找到

;curl.cainfo =

image.png

修改为

curl.cainfo = "C:\php\extras\ssl\cacert.pem"


保存重启IIS即可

发表评论:

未显示?请点击刷新

TOP