您的位置 首页 php

php中SSL certificate https问题解决方案

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中SSL certificate https问题解决方案的详细内容,更多请关注求知技术网其它相关文章!

文章来源:智云一二三科技

文章标题:php中SSL certificate https问题解决方案

文章地址:https://www.zhihuclub.com/3010.shtml

关于作者: 智云科技

热门文章

网站地图