是由于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
测试访问:
版权声明:本文为dacming原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。