/usr/local/openssl/ssl/cert.pem[default_cert_file_env] => SSL_CERT_FILE[default_cert_dir] => /usr/local/o..._php不支持openssl,可能充值接口无法使用、手机短信无法发送、电子邮件无法发送、">
赞
踩
输入:
php -r "print_r(openssl_get_cert_locations());"
Bash
得到:
Array
(
[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://curl.haxx.se/ca/cacert.pem
sudo mv cacert.pem /usr/local/openssl/ssl/cert.pem
Bash
就这样就解决了,很简单吧~
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。