🔨 修复加速后 Git for Windows SDK 无法访问 GitHub:本地提供 CRL 并为 MITM 证书添加吊销分发点 - #4126
Open
PtJade-Ceramic wants to merge 2 commits into
Open
🔨 修复加速后 Git for Windows SDK 无法访问 GitHub:本地提供 CRL 并为 MITM 证书添加吊销分发点#4126PtJade-Ceramic wants to merge 2 commits into
PtJade-Ceramic wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复内容
修复启用加速后 Git for Windows SDK 无法访问 GitHub 的问题(curl 报 CRYPT_E_NO_REVOCATION_CHECK 0x80092012 / curl: (35) ... schannel)。
根因
本地根 CA 签发的 MITM 叶子证书缺少 CRL 分发点(CDP)扩展。Schannel(Git for Windows SDK 使用的 TLS 后端)强制执行吊销检查,找不到吊销分发点即判定失败,导致 TLS 握手被拒绝。
改动
http://127.0.0.1:{CrlPort}/crl),对外提供由本地根 CA 签名的空 CRL。验证
curl -v https://github.com正常返回 HTTP 200 与完整页面;git ls-remote 正常拉取引用列表。Fixes #4123