是由于Homebrew长期没有更新,导致本地证书过期。
报错:
curl: (60) SSL certificate problem: certificate has expired
More details here: curl - SSL CA Certificates
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
解决:
echo insecure >> ~/.curlrc
HOMEBREW_CURLRC=1
export HOMEBREW_CURLRC
#brew install git
测试访问:

这篇博客主要介绍了在使用Homebrew时遇到的SSL证书过期问题,导致curl无法验证服务器合法性。解决方法是通过修改~/.curlrc文件,添加不检查证书的选项,并重新安装git。通过这个解决方案,可以恢复Homebrew的正常工作。

6093

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



