Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate Verification Failed "unknown certificate lookup failure" #2096

Open
dyphn1 opened this issue May 23, 2024 · 1 comment
Open

Certificate Verification Failed "unknown certificate lookup failure" #2096

dyphn1 opened this issue May 23, 2024 · 1 comment

Comments

@dyphn1
Copy link

dyphn1 commented May 23, 2024

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

@dyphn1
Copy link
Author

dyphn1 commented May 23, 2024

Additional explanation, we make sure all test users that git CLI is using windows CA storage through git config --global http.sslBackend schannel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant