本地调用EasyWeChat类时cURL扩展报错
cURL error 60: SSL certificate problem: unable to get local issuer certifica
解决方法
下载一个ca-bundle.crt ,放到对应的目录,在php.ini文件中配置下路径
https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt
在php.ini加入 ,重启web服务器
curl.cainfo=”真实路径/ca-bundle.crt”
注意在修改php.ini 的 curl.cainfo 时候 路径一定要是绝对路径,不然会报如下错误
cURL error 77: error setting certificate verify locations
相关博客文章 https://blog.csdn.net/sanbingyutuoniao123/article/details/71124655