
使用腾讯云cos存储对象时候突然报这个setting certificate verify locations错误,后面查看了/usr/local/ssl/目录下cert文件居然没有内容了。
GuzzleHttp\Exception\RequestException: cURL error 77: error setting certificate verify locations:
CAfile: /usr/local/ssl/cert.pem
CApath: none (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
cd /usr/local/ssl/
wget https://curl.haxx.se/ca/cacert.pem
rm -rf ./cert.pem
cp cacert.pem cert.pem
本文介绍了解决腾讯云COS存储中出现的证书验证错误的方法。通过下载新的证书文件替换原有空文件,成功解决了GuzzleHttp异常导致的cURL错误77问题。
https://www.toolnb.com/

2756

被折叠的 条评论
为什么被折叠?



