diff --git a/error.md b/error.md index b8f4ac699faa82a08c3476f368e6c1b0af28627c..0274054c8846b52dcdee410fd012bc7edbff2617 100644 --- a/error.md +++ b/error.md @@ -65,3 +65,16 @@ As Homebrew does not drop privileges on installation you would be giving all /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" ``` + +**11.** 如果遇到 SSL certificate problem: certificate has expired 错误 + **具体内容如下:** +Cloning into '/usr/local/Homebrew'... +fatal: unable to access 'https://mirrors.ustc.edu.cn/brew.git/': SSL certificate problem: certificate has expired +m此步骤失败 '尝试再次运行自动脚本选择其他下载源或者切换网络' + **问题分析:** +该部分原因可能因为在此之前 安装过Git客户端 默认Git客户端安装是开启SSL证书验证功能 需要在终端中关闭该验证 + **解决办法** +前面都不是重点,重点是问题描述里面的最后一句 certificate problem: certificate has expired,意思是证书过期了。其实就是SSL卡住了你,因此最快的解决方法就是关掉SSL验证。 +``` +git config --global http.sslVerify false +```