PHP OpenSSL openssl_get_cert_locations

PHP OpenSSL openssl_get_cert_locations

我的 phpinfo 显示如下:

OpenSSL support enabled OpenSSL Library Version OpenSSL 1.0.1f 6 Jan 2014 OpenSSL Header Version OpenSSL 1.0.1f 6 Jan 2014

我仍然收到此错误:

Call to undefined function openssl_get_cert_locations

我错过了什么?即使 openssl_get_privatekey 也能正常工作。

openssl_get_cert_locations 从 PHP5 版本 >= 5.6.0

开始可用

在控制台中输入 php -v 并让我们知道您看到了什么。