I'm in the process of moving from an old laptop (Windows 10 build 19045.3803) to a new one (Windows 11 build 22621.2861). I've installed git-for-windows then Sourcetree (3.4.16) on the new one. Every git operation (push, pull, fetch, check-out, with the exception of log) fails with the sourctree.log showing:
ERROR [2024-01-11 11:19:03,930] [75] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - POST MAU submission FAILED
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Refit.RequestBuilderImplementation`1.<>c__DisplayClass13_0`1.<<BuildCancellableTaskFuncForMethod>b__0>d.MoveNext() in D:\a\1\s\Refit\RequestBuilderImplementation.cs:line 231
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.<Post>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SourceTree.Analytics.Emau.EMauSubmissionService.<SubmitBatch>d__40.MoveNext()
Also, Sourcetree update check produces the same error.
Also, I've tried with and without "Disable SSL certificate validation" checked.
After struggling for the best part of a week to get this issue sorted, I also uninstalled and followed the exact same installation on the old laptop to use as an experiment, since Sourcetree was still working fine on that. That continues to work fine, after. I'm using plink/pageant with a the same private key on both. As best I can tell, all the company certificates are present in the Windows Cert Store on both computers.
I currently can't work because of this, and it's driving me mental. Desperate for help.
Thanks.
Hi, can you please try any git operation, e.g. `pull` without sourcetree. I think the issue is that Git in your new machine doesn't trust the certificate
These links might be useful:
Edit: found a similar answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.