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"