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中文网!
Copyright © 2019- areg.cn 版权所有
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务