obsidian/笔记文件/2.笔记/Git出现SSL certificate problem 认证报错的解决方法.md
2025-03-26 00:02:56 +08:00

27 lines
820 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#杂七杂八常识
一、问题描述
执行命令的时候出现“SSL certificate problem* * * ”报错一般在执行“git push”推送分支或者“git clone”克隆仓库时出现。原因是因为SSL安全验证问题不能获取到本地的证书。这里咱们通过不验证SSL证书方式解决。
二、解决方法
1、第一种
执行命令
``` shell
git config --global http.sslVerify false
```
2、第二种
打开git相关配置文件
![[Pasted image 20241108100543.png]]
将“sslverify”的值改为“false”注意“=”号两边有空格
![[Pasted image 20241108100556.png]]
如果没有存储,用户信息,也可能只有证书链接等,相关信息;
如果要重置,删除以下内容,保存修改即可
![[Pasted image 20241111152800.png]]