OSS上传文件提示SSL证书异常

问题:在利用OSS进行上传文件时,在本地调试发现都会报SSL证书异常
php

下载一个ca-bundle.crt ,放到对应的目录,在php.ini文件中配置下路径
https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crthtml

在php.ini加入 ,重启web服务器git

curl.cainfo="真实路径/ca-bundle.crt"

参考连接:http://www.javashuo.com/article/p-pnvexjsm-hn.htmlgithub

相关文章
相关标签/搜索