curl出现证书认证问题,无法上传图片,Problem with reading the SSL CA cert (path? access rights?)

服务器环境为CentOS,php-fpm,使用curl一个https站时失败,打开curl_error,捕获错误:Problem with reading the SSL CA cert (path? access rights?)

解决方案:
1. yum install ca-certificates (无论有没有,安装确认一下)

2. 重启php-fpm,这步比较重要,更改底层的东西时一定要重启一下

posted @ 2020-01-17 17:15  ToDarcy  阅读(390)  评论(0编辑  收藏  举报