windows上的Composer安装程序错误:OpenSSL失败,错误为';证书验证失败';错误

windows上的Composer安装程序错误:OpenSSL失败,错误为';证书验证失败';错误,ssl,openssl,composer-php,Ssl,Openssl,Composer Php,我正在我的机器上安装lando 当我尝试安装composer时,它会抛出如下错误 The Composer installer script was not successful [exit code 1]. OpenSSL failed with a 'certificate verify failed' error. This indicates a problem with the Certificate Authority file(s) on your system, which m

我正在我的机器上安装lando

当我尝试安装composer时,它会抛出如下错误

The Composer installer script was not successful [exit code 1]. OpenSSL failed with a 'certificate verify failed' error. This indicates a problem with the Certificate Authority file(s) on your system, which may be out of date. Certificate location [from SSL_CERT_FILE environment variable]: C:\projects\cacert.pem Script Output: 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
php.ini的
php.ini
配置看起来是正确的。您是否检查了
cacert.pem
文件是否损坏?您使用HTTP代理吗?我重新检查了concert.pem文件并添加了新下载的文件。我可以知道如何检查我是否使用HTTP代理吗?据我所知,我没有使用HTTP代理。您是否检查过是否编辑了正确的ini文件?有一个用于Web服务器使用的文件,另一个用于CLI使用的文件-第二个文件应该包含有关pem文件的信息
php.ini
配置看起来是正确的。您是否检查了
cacert.pem
文件是否损坏?您使用HTTP代理吗?我重新检查了concert.pem文件并添加了新下载的文件。我可以知道如何检查我是否使用HTTP代理吗?据我所知,我没有使用HTTP代理。您是否检查过是否编辑了正确的ini文件?有一个用于Web服务器使用的文件,另一个用于CLI使用的文件-第二个文件应包含有关pem文件的信息
[curl]
curl.cainfo = "C:\projects\cacert.pem"

[openssl]
openssl.cafile= "C:\projects\cacert.pem"