首页 > 其他分享 >mac brew安装报错curl: (60) SSL certificate problem: certificate has expired

mac brew安装报错curl: (60) SSL certificate problem: certificate has expired

时间:2023-02-26 00:33:58浏览次数:71  
标签:certificate pem etc cert 报错 curl expired ssl

curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

这个问题原因就是证书到期了,重新下载下证书就行了。

解决方案
打开浏览器下载pem文件,http://curl.haxx.se/ca/cacert.pem

然后备份一下系统原来的pem文件

cp /etc/ssl/cert.pem /etc/ssl/cert.bak.pem

之后将新下载的pem文件,拷贝到/etc/ssl/cert.pem

sudo mv ~/Downloads/cacert.pem /etc/ssl/cert.pem

再次下载就可以了

标签:certificate,pem,etc,cert,报错,curl,expired,ssl
From: https://www.cnblogs.com/c-x-a/p/17155779.html

相关文章