cURL 错误 60:尝试使用 symfony 时出现 ssl 认证问题 [英] cURL error 60: ssl certification issue when attempting to use symfony

查看:26
本文介绍了cURL 错误 60:尝试使用 symfony 时出现 ssl 认证问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近得到了一台新的 Windows 计算机并安装了 php symfony 框架.

I have recently gotten a new windows computer and have installed the php symfony framework.

尝试使用新命令时 C:>php symfony 新博客 我收到错误信息 [GuzzleHttpRingExceptionRingException] cURL 错误 60:SSL 证书问题:无法获得本地颁发者证书.

When attempting to use the new command C:> php symfony new blog I receive the error message [GuzzleHttpRingExceptionRingException] cURL error 60: SSL certificate problem: unable to get local issuer certificate.

我对在这种情况下该怎么做一无所知,因为我对 CMD 界面不太熟悉.

I am clueless on what to do in this instance as I am not too experienced with the CMD interface.

我需要知道这是 Windows 还是 symfony 本身的错误以及我可以采取的任何可能修复方法.

I need to know if this is an error with windows or with symfony itself and any possible routes I could take in fixing it.

推荐答案

Follow this链接,复制整个页面并将其保存在:cacert.pem"

Follow this link, Copy the entire page and save it in a: "cacert.pem"

然后在您的 php.ini 文件中插入或编辑以下行:curl.cainfo = "[pathtothisfile]cacert.pem"

Then in your php.ini file insert or edit the following line: curl.cainfo = "[pathtothisfile]cacert.pem"

使用 作曲家而是 Symfony 安装程序

use composer instead Symfony installer

这篇关于cURL 错误 60:尝试使用 symfony 时出现 ssl 认证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆