composer下載時報錯:
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
解決辦法:
這是因為連接packagist.org需要ssl證書,給php配置默認ssl證書可以解決
下載證書 http://curl.haxx.se/ca/cacert.pem
修改php.ini
curl.cainfo=/etc/ssl/certs/cacert.pem
openssl.cafile=/etc/ssl/certs/cacert.pem
openssl.capath=/etc/ssl/certs
必須已啟用openssl, curl擴展
