今天尝试在win8下运行composer却出现SSL报错:php
D:\data\www\mmoyu\symapp>php -f %phprc%\composer installhtml
Loading composer repositories with package informationapache
[Composer\Downloader\TransportException]json
The "https://packagist.org/packages.json" file could not be downloaded: SSLapp
operation failed with code 1. OpenSSL Error messages:composer
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verifycurl
failedurl
Failed to enable cryptocode
failed to open stream: operation failedorm
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-p
lugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--ver
bose] [-o|--optimize-autoloader]
没有安装CA证书致使的!!!
CA证书下载地址:http://curl.haxx.se/docs/caextract.html
而后修改php.ini文件
openssl.cafile=C:/lamp/php56/verify/cacert.pem
重启apache