When running composer under Win7, installing the asset plugin, SSL error occurs:
D:\data\www\mmoyu\symapp>
composer global require "fxp/composer-asset-plugin:1.0.0"
Loading composer repositories with package information
[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
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]
No CA certificate installed caused!!!
CA Certificate: http://curl.haxx.se/docs/caextract.html
Then modify the php.ini file to add
openssl.cafile= D:
/wamp/php/verify/cacert
.pem
It's OK.
Troubleshooting SSL Error when installing composer Asset plugin under Win7