libgit2 / libgit2/libgit2sharp
Certificate Verification Failed "unknown certificate lookup failure"
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 3.5k
- 派生
- 925
- PR 合并指标
- 30 天内没有已合并 PR
描述
I recently updated libgit2sharp (v0.26.2) to the latest v0.30.0.
Some of my product users are located in Taiwan, some are in China, and some are from Europe and the United States.
Before the upgrade, the company's internal repository could be accessed normally through the Repository.Clone API.
(URL and WorkDir only, no other options)
After the upgrade, users located in China will fail and get an error about SSL/TLS being unable to verify, as shown below.
We tried to troubleshoot other network issues and confirmed that all users were on the same OS version and supported TLS 1.2/1.3 only.
And do cross comparison with git CLI (git v2.43.0).
Everyone can download normally through the CLI, and will not encounter SSL/TLS verification errors when using libgit2sharp v0.26.2.
Only users located in China will encounter SSL/TLS verification failure in libgit2sharp v0.30.0.
Version of LibGit2Sharp (release number or SHA1)
v0.30.0
Operating system(s) tested; .NET runtime tested
Windows11
OS Build 22631.3593
Windows Feature Experience Pack 1000.22700.1003.0
.NET Framework 4.7.2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Repository.Clone API 开始,比较 libgit2sharp v0.26.2 和 v0.30.0 之间的证书验证行为。在受影响的环境中使用 Windows 11 和 .NET Framework 4.7.2 重现该故障;当内部仓库可以在不出现 SSL/TLS 验证错误的情况下完成克隆时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, git
- 领域
- devtools, security
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100