Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Composer php Composer安装时出现SSL错误(windows 10)_Composer Php - Fatal编程技术网

Composer php Composer安装时出现SSL错误(windows 10)

Composer php Composer安装时出现SSL错误(windows 10),composer-php,Composer Php,我正在为我的laravel项目安装一个作曲家,但似乎我总是遇到这个错误 Composer安装程序脚本未成功[退出代码1] OpenSSL失败,出现“证书验证失败”错误。这表示系统上的证书颁发机构文件有问题,可能已过期 证书位置[来自openssl.cafile ini设置]: D:\xampp\apache\bin\curl-ca-bundle.crt 命令行php使用的php.ini是:D:\xampp\php\php.ini 脚本输出: "https://getcomposer.org/ve

我正在为我的laravel项目安装一个作曲家,但似乎我总是遇到这个错误

Composer安装程序脚本未成功[退出代码1]

OpenSSL失败,出现“证书验证失败”错误。这表示系统上的证书颁发机构文件有问题,可能已过期

证书位置[来自openssl.cafile ini设置]: D:\xampp\apache\bin\curl-ca-bundle.crt

命令行php使用的php.ini是:D:\xampp\php\php.ini

脚本输出: "https://getcomposer.org/versions“无法下载文件:SSL操作失败,代码为1。OpenSSL错误消息: 错误:1416F086:SSL例程:tls\u进程\u服务器\u证书:证书验证失败 无法启用加密 无法打开流:操作失败

我已经通过php.ini文件正确配置了路径

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo="D:\xampp\apache\bin\curl-ca-bundle.crt"

[openssl]
; The location of a Certificate Authority (CA) file on the local filesystem
; to use when verifying the identity of SSL/TLS peers. Most users should
; not specify a value for this directive as PHP will attempt to use the
; OS-managed cert stores in its absence. If specified, this value may still
; be overridden on a per-stream basis via the "cafile" SSL stream context
; option.
openssl.cafile="D:\xampp\apache\bin\curl-ca-bundle.crt"
它似乎不起作用,我尝试了无数的修复方法,比如下载证书并替换它,但似乎没有任何效果