SSL certificate problem: unable to get local issuer certificate 解决方法
2017-05-27 20:17
1006 查看
运行 php:
报错 SSL certificate problem: unable to get local issuer certificate解决方法:
在php.ini(也可能是php_production.ini 或者php_ development.ini,具体看自己用的事那个配置) 中 添加
curl.cainfo="C:/ca-bundle.crt"//自己的目录
openssl.cafile="C:/ca-bundle.crt"//自己的目录
ca-bundle.crt 下载地址 http://download.csdn.net/detail/qq_27317147/9854558
<?php echo "hello ,this is a http request test!!! "."\n"; $get_user_info_url='https://www.baidu.com/'; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$get_user_info_url); curl_setopt($ch,CURLOPT_HEADER,0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); $res = curl_exec($ch); print_r ($res); if(curl_errno($ch)){ echo 'error:'.curl_error($ch); } curl_close($ch);
报错 SSL certificate problem: unable to get local issuer certificate解决方法:
在php.ini(也可能是php_production.ini 或者php_ development.ini,具体看自己用的事那个配置) 中 添加
curl.cainfo="C:/ca-bundle.crt"//自己的目录
openssl.cafile="C:/ca-bundle.crt"//自己的目录
ca-bundle.crt 下载地址 http://download.csdn.net/detail/qq_27317147/9854558
相关文章推荐
- PHP通过cURL访问https时出现SSL certificate problem: unable to get local issuer certificate的解决方法
- PHP通过cURL访问https时出现SSL certificate problem: unable to get local issuer certificate的解决方法
- cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决思路
- 解决错误 Curl error: SSL certificate problem: unable to get local issuer certificate
- symfony安装问题解决------cURL error 60:SSL certificate problem: unable to get local issuer certificate.
- 解决curl_error : SSL certificate problem: unable to get local issuer certificate
- curl: (60) SSL certificate: unable to get local issuer certificate 解决方法
- git SSL certificate problem: unable to get local issuer certificate
- git clone: SSL certificate problem: unable to get local issuer certificate
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- SSL certificate problem: unable to get local issuer certificate
- Yii easyWechat 开发的时候报错:cURL error 60: SSL certificate problem: unable to get local issuer certificat
- git SSL certificate problem: unable to get local issuer certificate
- SSL certificate problem: unable to get local issuer certificate
- 错误pycurl.error: (60, 'SSL certificate problem: unable to get local issuer certificate')解决方案
- php curl 报错:SSL certificate problem: unable to get local issuer certificate
- curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- Git: SSL certificate problem: unable to get local issuer certificate
- SSL certificate problem: unable to get local issuer certificate
- php SSL certificate problem: unable to get local issuer certificate