Previously used in Linux environments using PHP composer. Today try to run composer under the Win7, but there is an SSL error:
D:\data\www\mmoyu\symapp>php-f%phprc%\composer installloading Composer repositories with package information [Composer\downloader\transportexception] T He"Https://packagist.org/packages.json"file could not being Downloaded:ssl operation failed with code1. 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-Plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--Verbose] [-o|--optimize-autoloader]
No CA certificate installed caused!!!
CA Certificate: http://curl.haxx.se/docs/caextract.html
Then modify the php.ini file
?
| 1 |
openssl.cafile= D:/wamp/php/verify/cacert.pem |
It's OK.
Reprint: http://my.oschina.net/yearnfar/blog/346727
Solve the problem of SSL error in running PHP composer under Win7