2015-06-21 16:26:42 7517次浏览 1条回答 0 悬赏 19 金钱

我的操作系统是linux Deepin2014.3,采用的xampp安装的php,PHP版本高于5.4,调用这个命令的时候出问题了。

composer global require "fxp/composer-asset-plugin:1.0.0"

弹出这样的问题。

Changed current directory to /home/litianci/.composer
./composer.json has been updated
Loading composer repositories with package information
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 enable crypto
failed to open stream: operation failed
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

看问题是SSL的验证问题,网上搜索了很久没有解决。有没有哪位遇到类似的问题?看这个问题比较像linux的问题,不知道有没有遇到类似问题的人。

  • 回答于 2015-06-23 16:41 举报

    这个是说没有 安全证书 下载一个安全证书安装上试试:
    CA证书下载地址:http://curl.haxx.se/docs/caextract.html
    然后修改php.ini文件
    openssl.cafile= D:/wamp/php/verify/cacert.pem

    1 条回复
    回复于 2015-06-24 08:41 回复

    谢谢,看样子是说安全证书的,不过都以及安装好了,等下次折腾的时候再试试。我也搜索了好久安装证书的,最后试的方法,太多了,最后都混乱了。用了一个老版本的xampp,发现没有问题,新版的xampp有这个证书问题,即使按他们说的那样加入了新证书,也没用。就没耐心了,用起了老版本。

您需要登录后才可以回答。登录 | 立即注册
bubifengyun
总监

bubifengyun NJSH

注册时间:2014-11-06
最后登录:2022-10-29
在线时长:59小时54分
  • 粉丝36
  • 金钱10
  • 威望160
  • 积分2200

热门问题