php中SSLcertificatehttps问题解决方案
来源:动视网
责编:小采
时间:2020-11-27 14:19:50
php中SSLcertificatehttps问题解决方案
php中SSLcertificatehttps问题解决方案:1. 下载CA bundle (cacert.pem) from http://curl.haxx.se/docs/caextract.html2. 在服务器上找一个位置存放cacert.pem 类似于/opt/local/cacert.pem3. 打开php的配置文件php.ini4. 添加配置curl.ca_info = /opt/lo
导读php中SSLcertificatehttps问题解决方案:1. 下载CA bundle (cacert.pem) from http://curl.haxx.se/docs/caextract.html2. 在服务器上找一个位置存放cacert.pem 类似于/opt/local/cacert.pem3. 打开php的配置文件php.ini4. 添加配置curl.ca_info = /opt/lo

1. 下载CA bundle (cacert.pem) from http://curl.haxx.se/docs/caextract.html
2. 在服务器上找一个位置存放cacert.pem 类似于/opt/local/cacert.pem
3. 打开php的配置文件php.ini
4. 添加配置curl.ca_info = /opt/local/cacert.pem
5. 重启服务器apache或者nginx
更多PHP相关知识,请访问PHP中文网!
php中SSLcertificatehttps问题解决方案
php中SSLcertificatehttps问题解决方案:1. 下载CA bundle (cacert.pem) from http://curl.haxx.se/docs/caextract.html2. 在服务器上找一个位置存放cacert.pem 类似于/opt/local/cacert.pem3. 打开php的配置文件php.ini4. 添加配置curl.ca_info = /opt/lo