From 84cc4d1a1faf3a85ce47241357b3abba112e08bf Mon Sep 17 00:00:00 2001 From: "Mr.XiaoBo" Date: Tue, 5 Oct 2021 05:33:51 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20SSL=20certificate=20proble?= =?UTF-8?q?m:=20certificate=20has=20expired=20=E9=97=AE=E9=A2=98=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E5=8A=9E=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- error.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/error.md b/error.md index b8f4ac6..0274054 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 +``` -- Gitee