【发布时间】:2016-01-28 16:12:44
【问题描述】:
我想在我的工作 PC 上下载软件包(并且在代理后面)。我收到此错误:
[Composer\Downloader\TransportException]
“https://packagist.org/packages.json”文件不能 已下载:SSL 操作失败,代码为 1。 OpenSSL 错误消息: 错误:140770FC:SSL 例程:SSL23_GET_SERVER_HELLO:未知协议
启用加密失败
无法打开流:操作失败
我做了 php composer.phar diag,这是输出:
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: 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:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Failed to enable crypto
failed to open stream: operation failed
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:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Failed to enable crypto
failed to open stream: operation failed
Checking HTTP proxy support for request_fulluri: OK
Checking HTTPS proxy support for request_fulluri: FAIL
Unable to assess the situation, maybe github is down (The "https://api.github.com/repos/Seldaek/jsonlint/zipball/1.0.0" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Failed to enable crypto
failed to open stream: operation failed)
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Failed to enable crypto
failed to open stream: operation failed
Checking disk free space: OK
Checking composer version:
[Composer\Downloader\TransportException]
The "https://getcomposer.org/version" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Failed to enable crypto
failed to open stream: operation failed
希望有人可以帮助我。
谢谢!
【问题讨论】:
-
PS:我读过这篇文章link,但没有用。
-
您查看过此链接吗? stackoverflow.com/questions/32178980/…
-
您好,我做了一些更改,现在出现此错误:检查 http 连接:FAIL [Composer\Downloader\TransportException] 无法下载“packagist.org/packages.json”文件:无法打开流:找不到套接字传输“gcaserotto” - 您在配置 PHP 时是否忘记启用它?
标签: php laravel ssl https composer-php