cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决思路

php5.6以上的版本会出现这种问题

解决办法:

访问https://curl.haxx.se/docs/caextract.html,下载cacert.pem,并在php.ini文件添加

curl.cainfo="D:/wamp/bin/php/php7.0.10/extras/ssl/cacert.pem"

openssl.cafile="D:/wamp/bin/php/php7.0.10/extras/ssl/cacert.pem"

猜你喜欢

转载自blog.csdn.net/sunjinyan_1/article/details/81016839