gpt4 book ai didi

ssl - Composer --> 错误 :14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

转载 作者:太空宇宙 更新时间:2023-11-03 12:48:13 33 4
gpt4 key购买 nike

我可以连接到 SSL 站点,通过 HTTPS 通过命令行安装 composer。检查了 OPENSSL 版本 SSL Version => OpenSSL/1.0.1j 。那么问题出在哪里呢?想法?

这是原始输出。

[kunaaljain@localhost php]$ /opt/lampp/bin/php-5.6.3 composer.phar diagChecking composer.json: FAIL
the property name is required
the property description is required
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity: FAIL
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
failed to open stream: Cannot connect to HTTPS server through proxy
Checking HTTP proxy: FAIL
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
failed to open stream: Cannot connect to HTTPS server through proxy

最佳答案

这是 php > 5.6 的 OpenSSL 问题。 Rob Allen 在这里使用自制软件进行了修复: http://akrabat.com/ssl-certificate-verification-on-php-5-6/

在github上还有一个关于Composer的官方issue: https://github.com/composer/composer/issues/2798#issuecomment-68200214

编辑你的 php.ini 链接你的证书文件应该修复它:

curl.cainfo=/full/path/to/ssl/certs/ca-bundle.crt
openssl.cafile=/full/path/to/ssl/certs/ca-bundle.crt

这道题告诉你如何找到正确的路径: Composer update fails while updating from packagist

关于ssl - Composer --> 错误 :14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28249081/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com