php -r "print_r(openssl_get_cert_locations());"
执行结果
php -r "print_r(openssl_get_cert_locations());"
Array
(
[default_cert_file] => /usr/local/etc/openssl/cert.pem
[default_cert_file_env] => SSL_CERT_FILE
[default_cert_dir] => /usr/local/etc/openssl/certs
[default_cert_dir_env] => SSL_CERT_DIR
[default_private_dir] => /usr/local/etc/openssl/private
[default_default_cert_area] => /usr/local/etc/openssl
[ini_cafile] =>
[ini_capath] =>
)
本地证书地址为 /usr/local/etc/openssl/cert.pem。
wget http://curl.haxx.se/ca/cacert.pem
sudo mv cacert.pem /usr/local/etc/openssl/cert.pem
sudo pecl install redis