windows 安装composer 报SSL错误的解决方式

http://curl.haxx.se/docs/caextract.html     下载证书  便可   而后在php.ini  改一下配置  php

windows8下运行php 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
----相似以上错误html

这是没有安装CA证书致使的!!!json

CA证书下载地址:http://curl.haxx.se/docs/caextract.htmlwindows

而后修改php.ini文件curl

openssl.cafile= D:/wamp/php/verify/cacert.pemurl

相关文章
相关标签/搜索