在Windows上安装php composer的错误

时间:2014-05-27 23:39:11

标签: php laravel composer-php

在为laravel框架用户安装composer时,我遇到了一些错误:

Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
The download failed repeatedly, aborting.

我确定Openssl中的php.ini已启用。

1 个答案:

答案 0 :(得分:0)

启用OpenSSL扩展并不意味着它已正确配置。

无法验证getcomposer.org的证书。这意味着某个中间人服务器会因您的请求而混乱,或者您以某种方式未配置默认CA权限集。您的服务器运营商可以告诉您更多信息。