如何解决PHP中SSL证书导致HTTPS问题?
- 内容介绍
- 文章标签
- 相关推荐
本文共计179个文字,预计阅读时间需要1分钟。
1. 下载CA证书bundle(cacert.pem)至本地,可从http://curl.haxx.se/docs/caextract.获取。
2.在服务器上指定位置存放cacert.pem文件,例如在/opt/local/cacert.pem。
3.打开PHP配置文件php.ini。
4.添加配置项curl.ca_info=/opt/local/cacert。
1. 下载CA bundle (cacert.pem) from 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中SSL certificate https问题解决方案的详细内容,更多请关注自由互联其它相关文章!
本文共计179个文字,预计阅读时间需要1分钟。
1. 下载CA证书bundle(cacert.pem)至本地,可从http://curl.haxx.se/docs/caextract.获取。
2.在服务器上指定位置存放cacert.pem文件,例如在/opt/local/cacert.pem。
3.打开PHP配置文件php.ini。
4.添加配置项curl.ca_info=/opt/local/cacert。
1. 下载CA bundle (cacert.pem) from 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中SSL certificate https问题解决方案的详细内容,更多请关注自由互联其它相关文章!

