composer ssl证书出错

[Composer\Downloader\TransportException]

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

下边的方法也试了,不好是,有知道解决的没?
export COMPOSER_SSL_NO_VERIFY=true
env COMPOSER_SSL_NO_VERIFY=true
已邀请:

王赛

赞同来自:

试一试用国内composer国内镜像吧:
http://pkg.phpcomposer.com

包包不是包

赞同来自:

我也遇到这个问题了. 我的原因是php.ini中 openssl.cafile=/usr/lib/ssl/cert.pem 配置错了.
;cert.pem 可以从curl.haxx.se/ca/cacert.pem 下载
openssl.cafile=/usr/lib/ssl/cert.pem

要回复问题请先登录注册