libgit2 / libgit2/libgit2sharp

Certificate Verification Failed "unknown certificate lookup failure"

未關閉
#2,096 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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.
image

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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。