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相干学问,请接见ki4网!
以上就是php中SSL certificate https题目解决方案的细致内容,更多请关注ki4网别的相干文章!