转自 https://www.yiichina.com/tutorial/441
hp -r “copy(‘https://install.phpcomposer.com/installer’, ‘composer-setup.php’);”
下载composer文件报错
OpenSSL错误消息:错误:14090086:SSL
原因是证书版本问题 下载新版本证书
https://curl.haxx.se/docs/caextract.html
执行查找 php -r “print_r(openssl_get_cert_locations());”
Array
(
[default_cert_file] => /opt/lampp/share/openssl/cert.pem
[default_cert_file_env] => SSL_CERT_FILE
[default_cert_dir] => /opt/lampp/share/openssl/certs
[default_cert_dir_env] => SSL_CERT_DIR
[default_private_dir] => /opt/lampp/share/openssl/private
[default_default_cert_area] => /opt/lampp/share/openssl
[ini_cafile] =>
[ini_capath] =>
)
用下载的证书对原证书进行替换
https://www.cnblogs.com/lost-1987/articles/3302858.html