遇见过curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
2018-02-02 10:52
639 查看
因此,这就是浏览器无法通过HTTPs访问你服务器的原因。
解决此报错有2种处理方法
1.如果你的内容不敏感,一个快捷的方法是使用curl_exec()之前跳过ssl检查项。
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
2.下载一个ca-bundle.crt ,放到对应的目录,在php.ini文件中配置下路径
在php.ini加入 ,重启web服务器
curl.cainfo="真实路径/ca-bundle.crt"
https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt
借鉴:http://blog.csdn.net/sanbingyutuoniao123/article/details/71124655
相关文章推荐
- curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- php curl请求https接口返回curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- 支付宝 微信支付 curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- 微信公众号curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- Yii easyWechat 开发的时候报错:cURL error 60: SSL certificate problem: unable to get local issuer certificat
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
- 解决错误 Curl error: SSL certificate problem: unable to get local issuer certificate
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- cURL error 60: SSL certificate problem: unable to get local issuer certificate...
- cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决思路
- symfony安装问题解决------cURL error 60:SSL certificate problem: unable to get local issuer certificate.
- PySpider 框架爬虫错误 HTTP 599: SSL certificate problem: unable to get local issuer certificate解决方案
- symfony cURL error 60: SSL certificate: unable to get local issuer certificate
- curl: (60) SSL certificate: unable to get local issuer certificate 解决方法
- PHP通过cURL访问https时出现SSL certificate problem: unable to get local issuer certificate的解决方法
- 错误pycurl.error: (60, 'SSL certificate problem: unable to get local issuer certificate')解决方案