cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx
Posted djiz
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx相关的知识,希望对你有一定的参考价值。
参考 http://blog.csdn.net/mazicwong/article/details/54946952
1.到https://curl.haxx.se/ca/cacert.pem复制下文本粘贴到文件夹cart.pem
然后把catr.pem放到php的bin目录下 我用的是phpstudy 应该放到D:\phpStudy\Apache\bin 目录
2. 在php.ini中修改下面这句话,把前面分号删掉,分号是省略,然后后面天上自己cacert.pem文件的路径,重启phpstudy ,这样就可以了
curl.cainfo = "D:\phpStudy\Apache\bin\cacert.pem"
3、我没有遇到,也记录一下吧
另外:如果出现"解决为将对象引用设置到对象的实例"的问题,可以用下面这句话解决;
curl_setopt($curlobj, CURLOPT_USERAGENT, $_SERVER[‘HTTP_USER_AGENT‘]);
以上是关于cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx的主要内容,如果未能解决你的问题,请参考以下文章
cURL error 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
cURL error 60: SSL certificate problem: unable to get local issuer certifica 解决
Not hacking CurlException: 60 (cURL SSL Certificate Verification)
cURL error 60: SSL certificate problem: unable to get local issuer certifica