我正在尝试在 Windows 上安装 Composer,但出现以下错误:
无法下载“ https://getcomposer.org/versions ”文件:SSL 操作失败,代码为 1。OpenSSL 错误消息:错误:1416F086:SSL 例程:tls_process_server_certificate:证书验证失败无法启用加密无法打开流:手术失败。
这是怎么回事,我该如何解决?
所以我整个上午都尝试安装composer,这样我就可以开始使用laravel框架了.
我在php 7.0上使用XAMPP运行Windows server r2标准64位
运行Composer-Setup.exe时,我收到以下消息..
无法下载" https://getcomposer.org/versions "文件:SSL操作失败,代码为1. OpenSSL错误消息:错误:14090086:SSL例程:ssl3_get_server_certificate:certificate verify failed无法启用加密无法打开流:手术失败
我在网上搜索过,在大多数情况下,我似乎遇到的问题是指定一个cacert.pem文件.
所以我按照说明从https://curl.haxx.se/ca/cacert.pem下载证书
我只是创建了一个.txt文件,从上面的链接中将内容复制到其中并重命名该文件,因此它是cacert.pem文件.
然后在php.ini中指定.pem文件
openssl.cafile = C:\ cacert.pem
重新启动apache然后重新运行安装程序.
在再次运行之后,我得到了与ssl操作失败的完全相同的错误,代码为1.
希望有人能看到我在这里做错了什么?
我正在尝试在我Ubuntu 16.04的PHP version 5.6.*.
我用过:curl -sS https://getcomposer.org/installer | php。但它给了我如下错误:
All settings correct for using Composer
Downloading...
The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: Connection refused
Retrying...
The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Retrying...
The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. …Run Code Online (Sandbox Code Playgroud)