解決Windows下運作php Composer出現SSL報錯的問題
2015-01-14 20:05
在windows下運作composer卻出現SSL報錯:
E:\www>php -f composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed”
沒有安裝CA憑證導緻的!!!
CA憑證下載下傳位址:http://curl.haxx.se/docs/caextract.html
然後修改php.ini檔案
openssl.cafile= D:/xampp/php-5.6/cacert.pem