Ign*_*ted 5 ssl lamp openssl composer-php php-openssl
我可以连接到 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
Run Code Online (Sandbox Code Playgroud)
这是 php > 5.6 的 OpenSSL 问题。Rob Allen 在此处使用自制软件进行了修复: http://akrabat.com/ssl-certificate-verification-on-php-5-6/
Composer 的 github 上还有一个官方问题: 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
Run Code Online (Sandbox Code Playgroud)
这个问题告诉你如何找到正确的路径: Composer update failed while update from packagist
归档时间: |
|
查看次数: |
10147 次 |
最近记录: |