小编Sto*_*nov的帖子

无法使用PHP 5.6.3与Composer建立SSL连接

用PHP 5.6.3在Ubuntu 14.04克隆一个仓库后,我无法运行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
Run Code Online (Sandbox Code Playgroud)

我认为问题应该是我本地的证书,但我无法想象如何解决它.

这是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": …
Run Code Online (Sandbox Code Playgroud)

php ssl certificate composer-php

8
推荐指数
1
解决办法
9877
查看次数

标签 统计

certificate ×1

composer-php ×1

php ×1

ssl ×1