curl: (60) SSL certificate problem: unable to get local issuer certificate 错误

由于没有配置信任的服务器HTTPS验证。默认,cURL被设为不信任任何CAs,就是说,它不信任任何服务器验证。
解决:
下载:https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt
放置php5.6.31\extras\ssl目录下

php.ini搜索curl.cainfo配置地址:"D:\install\wamp64\bin\php\php5.6.31\extras\ssl\ca-bundle.crt"

Tags: PHP

仅有一条评论

  1. cURL error 58
    微信支付证书使用绝对路径

添加新评论