git clone next InitializeSecurityContext failed错误

git clone 报错.. fatal: unable to access 'https://github.com/Firefly-rk-linux-utils/git-repo.git/': schannel: next InitializeSecurityContext failed: Unknown error (0x80092012)

方案一:禁用证书吊销检查(推荐)

执行如下命令:这是最简单且安全的解决方案,仅禁用吊销检查,保留证书验证:

复制代码
git config --global http.schannelCheckRevoke false

以下方案仅供额外参考,推荐使用上述方案。

方案二:切换 SSL 后端为 OpenSSL

将 Git 的 SSL 后端从 Windows 的 schannel 切换到 OpenSSL:

bash

运行

复制代码
git config --global http.sslBackend openssl

方案三:单次克隆临时解决

如果不想修改全局配置,可以在克隆时临时设置:

bash

运行

复制代码
git clone https://github.com/Firefly-rk-linux-utils/git-repo.git --config http.schannelCheckRevoke=false

方案四:企业环境配置(如果您在公司网络中)

如果是因为公司的自签名证书导致的问题,需要配置公司的 CA 证书:

bash

运行

复制代码
git config --global http.sslCAInfo "path/to/company-ca-bundle.crt"
相关推荐
ON10N2 小时前
100% 纯 Vibe Coding,我是怎么用 AI 撸出一个 VS Code 插件的
git·ai编程·visual studio code
Lunar*9 小时前
告别臃肿!使用 git-filter-repo 优雅清理 Git 历史记录
git
tq10869 小时前
agent 记忆 = markdown + json + git
人工智能·git
何以不说话11 小时前
DevOps、Git 和 GitLab
git·gitlab·devops
最最菜的菜鸟12 小时前
本地环境通过 SSH 协议访问 GitHub 上的仓库时,SSH 公钥认证失败,配置 Git SSH 密钥
git·ssh·github
无限进步_1 天前
21. 合并两个有序链表 - 题解与详细分析
c语言·开发语言·数据结构·git·链表·github·visual studio
宁静致远20211 天前
STM32CubeMX、MDK(Keil MDK)、git、vscode等工具中统一编码设置(UTF-8),确保中文支持,避免乱码问题
git·vscode·stm32
love530love1 天前
Windows 多 Git 环境冲突:一个环境变量优先级引发的血案
人工智能·windows·git·环境变量·scoop
无限进步_2 天前
面试题 02.04. 分割链表 - 题解与详细分析
c语言·开发语言·数据结构·git·链表·github·visual studio
甲枫叶2 天前
【claude】Claude Code正式引入Git Worktree原生支持:Agent全面实现并行独立工作
java·人工智能·git·python·ai编程