curl: (60) SSL certificate: unable to get local issuer certificate 解决方法
来源:互联网 发布:mac flv 编辑:程序博客网 时间:2024/05/21 07:52
概述:
在学习symfony的在windows安装过程中,当Symfony安装器被设置好之后,使用命令php symfony new my_project_name 来创建Symfony项目时报以下错误,如下图:
即curl: (60) SSL certificate: unable to get local issuer certificate
原因:
百度了一下原因是使用curl时获取SSL证书报错:无法获得本地颁发者证书;
解决方法:
1.下载cacert.pem;
csdn下载链接:http://download.csdn.net/detail/leesin2011/9840199
点击下载:cacert.pem
2.修改php.ini文件,搜索curl.cainfo
absolute path.curl.cainfo = G:\phpStudy\WWW\cacert.pem
我这里使用的是绝对路径,所以路径为文件cacert.pem所在磁盘位置,将上述两行代码前面的分号去掉使之生效;
3.重启php和服务器
参考来源于国外stackoverflow网站的小伙伴的解答,tks!
原文地址:http://stackoverflow.com/questions/29822686/curl-error-60-ssl-certificate-unable-to-get-local-issuer-certificate
1 0
- curl: (60) SSL certificate: unable to get local issuer certificate 解决方法
- SSL certificate problem: unable to get local issuer certificate 解决方法
- curl: (60) 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 problem: unable to get local issuer certificate 错误
- PHP出现 cURL error 60: SSL certificate: unable to get local issuer certificate.的解决办法。
- cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决思路
- 微信公众号curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- PHP通过cURL访问https时出现SSL certificate problem: unable to get local issuer certificate的解决方法
- PHP通过cURL访问https时出现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
- 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
- SSL certificate problem: unable to get local issuer certificate
- php curl请求https接口返回curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- php curl 报错:SSL certificate problem: unable to get local issuer certificate
- 思考什么
- Java自带线程池和队列详细讲解
- 5-66 N个数求和 (20分)
- getIntersectionNode 解题报告
- dubbo服务端xml文件有红叉解决办法
- curl: (60) SSL certificate: unable to get local issuer certificate 解决方法
- 类似三角形数的一般推导公式
- java内存管理
- jdbc-建立与数据库的连接
- C语言计算高斯核函数
- HOJ 2662 Pieces Assignment
- Reorder array to construct the minimum number 解题报告
- Java AES加密解密示例
- 王垠:自动编程是不可能的 我为什么不在乎人工智能