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"
相关推荐
深海鱼在掘金7 小时前
Git 完全指南 —— 第1章:Git 概览与版本控制演进
git
noravinsc1 天前
关于Git Flow
git
蜜獾云1 天前
在Git中配置用户名和密码
git
scx_link1 天前
通过git bash在本地创建分支,并推送到远程仓库中
开发语言·git·bash
南大白1 天前
IntelliJ IDEA 运行时的 JVM 本地内存溢出崩溃
git
码农小旋风1 天前
Claude Code 基础用法大全:对话、分析、修改、测试、Git 和工作流
人工智能·git·chatgpt·claude
南大白1 天前
Git 撤回提交完整方案
git
像风一样的男人@1 天前
python --实现代理服务器
git·ui
sbjdhjd1 天前
从零搭建企业级 CI/CD(下):Jenkins+GitLab+Harbor 全链路实战指南
git·servlet·ci/cd·云原生·云计算·gitlab·jenkins
码云数智-大飞1 天前
Go Channel 详解:并发通信的正确姿势
前端·数据库·git