输入:
php -r “print_r(openssl_get_cert_locations());”
得到:
(
[default_cert_file] => /usr/local/openssl/ssl/cert.pem
[default_cert_file_env] => ssl_CERT_FILE
[default_cert_dir] => /usr/local/openssl/ssl/certs
[default_cert_dir_env] => ssl_CERT_DIR
[default_private_dir] => /usr/local/openssl/ssl/private
[default_default_cert_area] => /usr/local/openssl/ssl
[ini_cafile] =>
[ini_capath] =>
)
Bash
下面获取新证书并且替换旧证书:
wget http://www.xlyVPS.com/ca/cacert.pem
sudo mv cacert.pem /usr/local/openssl/ssl/cert.pem
Bash
就这样就解决了,很简单吧~