curl error60
原因: curl配置中开启了证书校验
解决方式
1.关闭curl的证书校验(如果内容不敏感)
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
2. php配置中添加证书路径
下载一个ca-bundle.crt,放到对应目录,在php.ini文件中配置路径
eg. https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt
在php.ini中加入crt文件路径,重启
curl.cainfo="crt路径/ca-bundle.crt"
参考链接:https://blog.csdn.net/sanbingyutuoniao123/article/details/71124655

浙公网安备 33010602011771号