5

HTTPSを介してコマンドラインからcomposerをインストールしたSSLサイトに接続できます。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
4

3 に答える 3

2

これは、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

この質問は、正しいパスを見つける方法を示しています: packagist からの更新中に Composer の更新が失敗する

于 2015-03-15T16:00:55.307 に答える