libgit2 / libgit2sharp

Git + .NET = ❤
http://libgit2.github.com
MIT License
3.11k stars 876 forks source link

Git Fetch fails with could not decrypt tls message when TLS 1.3 is allowed #2089

Open pde-cds opened 2 months ago

pde-cds commented 2 months ago

Reproduction steps

On windows 10 create keys "TLS 1.3\Client" under "Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols" and two DWORDS "DisabledByDefault" with value 0 and Enabled with value 1. image Then create a repository and add a remote with https://github.com/libgit2/libgit2sharp.git and run a git fetch.

Expected behavior

No error fetch is executed

Actual behavior

Error "could not decrypt tls message"

Version of LibGit2Sharp (release number or SHA1)

LibGit2Sharp 0.30.0 but can also be reproduced with 0.27.2

Operating system(s) tested; .NET runtime tested

Win 10 22H2 x64 .NET 4.8

This issue can also reproduced with the LibGit2Sharp.Tests