在 Ubuntu 14.04 上使用 PHP 5.6.3 克隆仓库后,我无法运行
php composer.phar selfupdate
或者 php composer.phar update
。出现以下提示: [Composer\Downloader\TransportException]
The "https://getcomposer.org/version" file could not be downloaded: SSL ope
ration failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed
Failed to enable crypto
failed to open stream: operation failed
我认为问题应该出在我本地的证书上,但是我不知道如何解决。
这是composer.json文件:
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.3.*",
"evandotpro/edp-module-layouts": "1.*",
"tecnick.com/tcpdf": "~6.0@stable",
"phpoffice/phpexcel": "1.7.*"
},
"require-dev": {
"phpunit/phpunit": "4.1.*",
"phpunit/phpunit-selenium": ">=1.2"
},
"autoload": {
"psr-0": {"BOZA\\": "vendor/BOZA/"},
"classmap": ["vendor/tecnick.com/tcpdf"]
}