git-credential-manager
git-credential-manager copied to clipboard
Unable to authenticate with Git to GitHub on Windows 7: GCM 2.2.2 yields `fatal: acces denied`
Version
2.2.2
Operating system
Windows
OS version or distribution
Windows 7 Home Premium (6.1.7601 Service Pack 1) x64
Git hosting provider(s)
GitHub
Other hosting provider
No response
(Azure DevOps only) What format is your remote URL?
None
Can you access the remote repository directly in the browser?
Yes, I can access the repository
Expected behavior
| Command | Version |
|---|---|
git --version |
2.41.0.windows.3 |
git credential-manager --version |
2.2.2 |
I use Git and GitHub using the default Git Credential Manager (GCM) on my Windows 10 machine without any problems. Now, I installed Git with the same setup (all the default settings) on my 2 Windows 7 machines and git is working (as long as I don't connect with a remote).
When I try to clone or push to any of my own private repositories I am asked by the GCM to authenticate. I click the sign in with browser button and I expect to land on a webpage with an authentication link (where I can sign in to GitHub if not already done).
Actual behavior
When the GCM asks to authenticate, I click the sign in with browser button. Just before the browser opens I get a message in the CMD fatal: access denied. Then the browser opens with an authentication link as expected but immediately goes to a 127.0.0.1 (local?) address where I see ERR_CONNECTION_REFUSED in Google Chrome.
I tried this with Google Chrome and Microsoft Edge while logged in in GitHub and while not logged in. As well as in a guest window in Google Chrome and Microsoft Edge. All with the same result.
According to this post Windows 7 should still be supported by Git, but cloning a repository or pushing to the remote is impossible. I have no problems when running this on my Windows 10 machine.
See also my StackOverflow question.
Logs
Below I used :: for comments which I added after I copied my CMD output.
C:\Users\<Username>\Directory> git --version
git version 2.41.0.windows.3
C:\Users\<Username>\Directory> git credential-manager --version
2.2.2
C:\Users\<Username>\Directory> git config --global user.name <username of GitHub account>
C:\Users\<Username>\Directory> git config --global user.email <email of GitHub account>
C:\Users\<Username>\Directory> git clone https://github.com/<username>/<repository-name>.git
Cloning into '<repository-name>'...
info: please complete authentication in your browser...
:: until here everything was as expected ...
fatal: Access denied
:: AFTER the access denied message the browser opens and fails to load the page I expect
:: Then Git asks for username and password which were deprecated in August 2021 (It does not matter whether I try to log in using username and password or not)
Username for 'https://github.com':
Password for 'https://github.com':
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/<username>/<repository-name>.git'
The full logs are shown below:
C:\Users\<Username>\Directory> GIT_TRACE=1 GCM_TRACE=1 git clone https://github.com/TMartinot/<repository-name>.git
20:49:48.107500 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
20:49:48.169900 git.c:462 trace: built-in: git clone https://github.com/TMartinot/<repository-name>.git
Cloning into '<repository-name>'...
20:49:48.247900 run-command.c:661 trace: run_command: git remote-https origin https://github.com/TMartinot/<repository-name>.git
20:49:48.419501 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:49:48.450701 git.c:748 trace: exec: git-remote-https origin https://github.com/TMartinot/<repository-name>.git
20:49:48.450701 run-command.c:661 trace: run_command: git-remote-https origin https://github.com/TMartinot/<repository-name>.git
20:49:48.731501 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:49:49.776703 run-command.c:661 trace: run_command: 'git credential-manager get'
20:49:50.104304 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:49:50.135504 git.c:748 trace: exec: git-credential-manager get
20:49:50.135504 run-command.c:661 trace: run_command: git-credential-manager get
20:49:50.946705 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:49:50.962305 git.c:462 trace: built-in: git config --null --list
20:49:51.040305 ...\Application.cs:106 trace: [RunInternalAsync] Version: 2.2.2.0
20:49:51.243106 ...\Application.cs:107 trace: [RunInternalAsync] Runtime: .NET Framework 4.0.30319.42000
20:49:51.243106 ...\Application.cs:108 trace: [RunInternalAsync] Platform: Windows (x86-64)
20:49:51.243106 ...\Application.cs:109 trace: [RunInternalAsync] OSVersion: 6.1 (build 7601)
20:49:51.243106 ...\Application.cs:110 trace: [RunInternalAsync] AppPath: C:\Program Files\Git\mingw64\bin\git-credential-manager.exe
20:49:51.243106 ...\Application.cs:111 trace: [RunInternalAsync] InstallDir: C:\Program Files\Git\mingw64\bin\
20:49:51.243106 ...\Application.cs:112 trace: [RunInternalAsync] Arguments: get
20:49:51.383506 ...GitCommandBase.cs:32 trace: [ExecuteAsync] Start 'get' command...
20:49:51.414706 ...GitCommandBase.cs:46 trace: [ExecuteAsync] Detecting host provider for input:
20:49:51.414706 ...GitCommandBase.cs:47 trace: [ExecuteAsync] protocol=https
20:49:51.414706 ...GitCommandBase.cs:47 trace: [ExecuteAsync] host=github.com
20:49:51.414706 ...GitCommandBase.cs:47 trace: [ExecuteAsync] wwwauth=Basic realm="GitHub"
20:49:51.477106 ...viderRegistry.cs:149 trace: [GetProviderAsync] Performing auto-detection of host provider.
20:49:51.477106 ...viderRegistry.cs:162 trace: [GetProviderAsync] Auto-detect probe timeout is 2 ms.
20:49:51.492706 ...viderRegistry.cs:170 trace: [GetProviderAsync] Checking against 4 host providers registered with priority 'Normal'.
20:49:51.492706 ...GitCommandBase.cs:49 trace: [ExecuteAsync] Host provider 'GitHub' was selected.
20:49:51.508306 ...bHostProvider.cs:142 trace: [GetCredentialAsync] Found 0 accounts in the store for service=https://github.com.
20:49:51.523906 ...bHostProvider.cs:218 trace: [FilterAccounts] Account filtering is enabled.
20:49:51.523906 ...bHostProvider.cs:226 trace: [FilterAccounts] Filtering based on WWW-Authenticate header information...
20:49:51.586306 ...bHostProvider.cs:229 trace: [FilterAccounts] Matched 0 accounts with public domain:
20:49:51.586306 ...bHostProvider.cs:181 trace: [GetCredentialAsync] No existing credentials found.
20:49:51.601906 ...bHostProvider.cs:184 trace: [GetCredentialAsync] Creating new credential...
20:49:51.601906 ...bHostProvider.cs:420 trace: [GetSupportedAuthenticationModesAsync] https://github.com/ is github.com - authentication schemes: 'Pat, OAuth'
20:49:51.835907 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:49:51.913907 git.c:462 trace: built-in: git version
20:49:52.101107 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:49:52.116707 git.c:462 trace: built-in: git config --null --type=path credential.https://github.com.gitHubHelper
20:49:52.272708 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:49:52.288308 git.c:462 trace: built-in: git config --null --type=path credential.github.com.gitHubHelper
20:49:52.444308 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:49:52.459908 git.c:462 trace: built-in: git config --null --type=path credential.gitHubHelper
20:50:12.365543 ...pClientFactory.cs:60 trace: [CreateClient] Creating new HTTP client instance...
20:50:12.396743 ...pClientFactory.cs:80 trace: [CreateClient] Git's SSL/TLS backend is: OpenSsl
20:50:12.646343 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:50:12.661943 git.c:462 trace: built-in: git config --null --type=path http.https://github.com.sslCAInfo
20:50:12.817944 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:50:12.849144 git.c:462 trace: built-in: git config --null --type=path http.github.com.sslCAInfo
20:50:13.005144 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:50:13.020744 git.c:462 trace: built-in: git config --null --type=path http.sslCAInfo
20:50:13.161144 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:50:13.192344 git.c:462 trace: built-in: git config --null --type=path http.https://github.com.sslCAInfo
20:50:13.332744 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:50:13.363945 git.c:462 trace: built-in: git config --null --type=path http.github.com.sslCAInfo
20:50:13.504345 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:50:13.519945 git.c:462 trace: built-in: git config --null --type=path http.sslCAInfo
20:50:13.535545 ...ClientFactory.cs:113 trace: [CreateClient] Custom certificate verification has been enabled with certificate bundle at C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
20:50:13.660345 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:50:13.675945 git.c:462 trace: built-in: git config --null --type=path http.https://github.com.cookieFile
20:50:13.816345 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:50:13.831945 git.c:462 trace: built-in: git config --null --type=path http.github.com.cookieFile
20:50:13.956746 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:50:13.987946 git.c:462 trace: built-in: git config --null --type=path http.cookieFile
fatal: Access denied
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at GitCredentialManager.Authentication.OAuth.OAuth2SystemWebBrowser.<InterceptRequestsAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitCredentialManager.Authentication.OAuth.OAuth2SystemWebBrowser.<GetAuthenticationCodeAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitCredentialManager.Authentication.OAuth.OAuth2Client.<GetAuthorizationCodeAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubAuthentication.<GetOAuthTokenViaBrowserAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubHostProvider.<GenerateOAuthCredentialAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubHostProvider.<GenerateCredentialAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubHostProvider.<GetCredentialAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitCredentialManager.Commands.GetCommand.<ExecuteInternalAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at GitCredentialManager.Commands.GitCommandBase.<ExecuteAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Invocation.AnonymousCommandHandler.<InvokeAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass15_0.<<AddMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()
20:50:16.071043 run-command.c:661 trace: run_command: 'C:/Program Files/Git/mingw64/bin/git-askpass.exe' 'Username for '\''https://github.com'\'': '
20:50:30.946914 run-command.c:661 trace: run_command: 'C:/Program Files/Git/mingw64/bin/git-askpass.exe' 'Password for '\''https://[email protected]'\'': '
20:50:34.743363 run-command.c:661 trace: run_command: 'git credential-manager erase'
20:50:35.120566 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:50:35.151766 git.c:748 trace: exec: git-credential-manager erase
20:50:35.151766 run-command.c:661 trace: run_command: git-credential-manager erase
20:50:38.435194 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
20:50:38.450794 git.c:462 trace: built-in: git config --null --list
20:50:38.575595 ...\Application.cs:106 trace: [RunInternalAsync] Version: 2.2.2.0
20:50:38.606795 ...\Application.cs:107 trace: [RunInternalAsync] Runtime: .NET Framework 4.0.30319.42000
20:50:38.606795 ...\Application.cs:108 trace: [RunInternalAsync] Platform: Windows (x86-64)
20:50:38.606795 ...\Application.cs:109 trace: [RunInternalAsync] OSVersion: 6.1 (build 7601)
20:50:38.606795 ...\Application.cs:110 trace: [RunInternalAsync] AppPath: C:\Program Files\Git\mingw64\bin\git-credential-manager.exe
20:50:38.606795 ...\Application.cs:111 trace: [RunInternalAsync] InstallDir: C:\Program Files\Git\mingw64\bin\
20:50:38.606795 ...\Application.cs:112 trace: [RunInternalAsync] Arguments: erase
20:50:38.684795 ...GitCommandBase.cs:32 trace: [ExecuteAsync] Start 'erase' command...
20:50:38.747195 ...GitCommandBase.cs:46 trace: [ExecuteAsync] Detecting host provider for input:
20:50:38.747195 ...GitCommandBase.cs:47 trace: [ExecuteAsync] protocol=https
20:50:38.747195 ...GitCommandBase.cs:47 trace: [ExecuteAsync] host=github.com
20:50:38.747195 ...GitCommandBase.cs:47 trace: [ExecuteAsync] username=TMartinot
20:50:38.747195 ...GitCommandBase.cs:47 trace: [ExecuteAsync] password=********
20:50:38.747195 ...GitCommandBase.cs:47 trace: [ExecuteAsync] wwwauth=Basic realm="GitHub"
20:50:38.762795 ...viderRegistry.cs:149 trace: [GetProviderAsync] Performing auto-detection of host provider.
20:50:38.762795 ...viderRegistry.cs:162 trace: [GetProviderAsync] Auto-detect probe timeout is 2 ms.
20:50:38.762795 ...viderRegistry.cs:170 trace: [GetProviderAsync] Checking against 4 host providers registered with priority 'Normal'.
20:50:38.762795 ...GitCommandBase.cs:49 trace: [ExecuteAsync] Host provider 'GitHub' was selected.
20:50:38.762795 ...bHostProvider.cs:270 trace: [EraseCredentialAsync] Erasing stored credential in store with service=https://github.com account=TMartinot...
20:50:38.793995 ...bHostProvider.cs:277 trace: [EraseCredentialAsync] No credential was erased.
20:50:38.793995 ...GitCommandBase.cs:53 trace: [ExecuteAsync] End 'erase' command...
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/TMartinot/<repository-name>.git/'
Hello!
Can you please re-run your clone command but first set the following environment variable to capture more detailed logs, and then share the contents?
SET GCM_TRACE=C:\Users\<Username>\gcm.log
Hi,
I just updated the logs when running the clone command with GIT_TRACE=1 and GCM_TRACE=1 and added it in the issue description above. I get the same error when I want to push to a new (private) repository.
Thank you for sharing the logs!
It looks like the issue is that, on Windows 7, the default network settings prohibit applications from listening to connections to localhost/127.0.0.1 without being running as an administrator. Windows 10 permits this by default.
There are two ways around this:
-
Do not use the "Sign in with browser" option (which requires the localhost listener), and instead use "device code".
-
Run the following command to grant your user rights to listen on localhost: source1 | source2.
netsh http add urlacl url=http://+:80/ user=DOMAIN\user
where DOMAIN\user is your local Windows user. Run whoami to find this out.
Closing due to lack of response - assuming resolution worked.
@ldennington First of all sorry for my slow response. I have tried to understand the sources but this is not my expertise.
When using the commands above I once saw the authentication succeeded page in my browser while the actual authentication failed! I was not able to reproduce this since I kept getting the old 127.0.0.1 ERR_CONNECTION_REFUSED page as described earlier, but the error in the logs seems to be changed from fatal: Access denied to fatal: An error occurred while sending the request..
C:\Users\<Username>\Directory> whoami
DOMAIN\user
C:\Users\<Username>\Directory> netsh http show urlacl
Reserved URL: http://+:80/
user: DOMAIN\user
Listen: Yes
Delegate: No
SDDL: D:(A;;GA;;;X-0-0-00-00000000-0000000-0000000-1000)
Note: the actual SDDL was different than the one shown.
However, there was no possibility to authenticate. Also the sign in with a code option failed. I to set delegation permissions, but that did not fix the problem,
C:\Users\<Username>\Directory> netsh http add urlacl url=http://+:80/ user=DOMAIN\user delegate=yes
C:\Users\<Username>\Directory> netsh http show urlacl
Reserved URL: http://+:80/
user: DOMAIN\user
Listen: Yes
Delegate: Yes
SDDL: D:(A;;GA;;;X-0-0-00-00000000-0000000-0000000-1000)
Note: the actual SDDL was different than the one shown.
Sign in with browser option
C:\Users\<Username>\Directory> GIT_TRACE=1 GCM_TRACE=1 git clone https://github.com/TMartinot/<repository-name>.git
00:46:01.160527 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
00:46:01.209529 git.c:462 trace: built-in: git clone https://github.com/TMartinot/<repository-name>.git
Cloning into 'hospi-app'...
00:46:01.374539 run-command.c:661 trace: run_command: git remote-https origin https://github.com/TMartinot/<repository-name>.git
00:46:01.443543 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:01.550549 git.c:748 trace: exec: git-remote-https origin https://github.com/TMartinot/<repository-name>.git
00:46:01.566550 run-command.c:661 trace: run_command: git-remote-https origin https://github.com/TMartinot/<repository-name>.git
00:46:01.632554 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:02.888625 run-command.c:661 trace: run_command: 'git credential-manager get'
00:46:03.174642 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:03.224645 git.c:748 trace: exec: git-credential-manager get
00:46:03.224645 run-command.c:661 trace: run_command: git-credential-manager get
00:46:03.622667 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:03.689671 git.c:462 trace: built-in: git config --null --list
00:46:03.856681 ...\Application.cs:106 trace: [RunInternalAsync] Version: 2.2.2.0
00:46:03.939685 ...\Application.cs:107 trace: [RunInternalAsync] Runtime: .NET Framework 4.0.30319.42000
00:46:03.939685 ...\Application.cs:108 trace: [RunInternalAsync] Platform: Windows (x86-64)
00:46:03.939685 ...\Application.cs:109 trace: [RunInternalAsync] OSVersion: 6.1 (build 7601)
00:46:03.939685 ...\Application.cs:110 trace: [RunInternalAsync] AppPath: C:\Program Files\Git\mingw64\bin\git-credential-manager.exe
00:46:03.940686 ...\Application.cs:111 trace: [RunInternalAsync] InstallDir: C:\Program Files\Git\mingw64\bin\
00:46:03.940686 ...\Application.cs:112 trace: [RunInternalAsync] Arguments: get
00:46:04.117696 ...GitCommandBase.cs:32 trace: [ExecuteAsync] Start 'get' command...
00:46:04.129696 ...GitCommandBase.cs:46 trace: [ExecuteAsync] Detecting host provider for input:
00:46:04.135697 ...GitCommandBase.cs:47 trace: [ExecuteAsync] protocol=https
00:46:04.136697 ...GitCommandBase.cs:47 trace: [ExecuteAsync] host=github.com
00:46:04.136697 ...GitCommandBase.cs:47 trace: [ExecuteAsync] wwwauth=Basic realm="GitHub"
00:46:04.154698 ...viderRegistry.cs:149 trace: [GetProviderAsync] Performing auto-detection of host provider.
00:46:04.156698 ...viderRegistry.cs:162 trace: [GetProviderAsync] Auto-detect probe timeout is 2 ms.
00:46:04.162698 ...viderRegistry.cs:170 trace: [GetProviderAsync] Checking against 4 host providers registered with priority 'Normal'.
00:46:04.173699 ...GitCommandBase.cs:49 trace: [ExecuteAsync] Host provider 'GitHub' was selected.
00:46:04.204701 ...bHostProvider.cs:142 trace: [GetCredentialAsync] Found 0 accounts in the store for service=https://github.com.
00:46:04.210701 ...bHostProvider.cs:218 trace: [FilterAccounts] Account filtering is enabled.
00:46:04.228702 ...bHostProvider.cs:226 trace: [FilterAccounts] Filtering based on WWW-Authenticate header information...
00:46:04.230702 ...bHostProvider.cs:229 trace: [FilterAccounts] Matched 0 accounts with public domain:
00:46:04.231702 ...bHostProvider.cs:181 trace: [GetCredentialAsync] No existing credentials found.
00:46:04.231702 ...bHostProvider.cs:184 trace: [GetCredentialAsync] Creating new credential...
00:46:04.255704 ...bHostProvider.cs:420 trace: [GetSupportedAuthenticationModesAsync] https://github.com/ is github.com - authentication schemes: 'Pat, OAuth'
00:46:04.330708 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:04.378711 git.c:462 trace: built-in: git version
00:46:04.474716 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:04.526719 git.c:462 trace: built-in: git config --null --type=path credential.https://github.com.gitHubHelper
00:46:04.592723 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:04.649726 git.c:462 trace: built-in: git config --null --type=path credential.github.com.gitHubHelper
00:46:04.713730 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:04.783734 git.c:462 trace: built-in: git config --null --type=path credential.gitHubHelper
00:46:20.274620 ...pClientFactory.cs:60 trace: [CreateClient] Creating new HTTP client instance...
00:46:20.527634 ...pClientFactory.cs:80 trace: [CreateClient] Git's SSL/TLS backend is: OpenSsl
00:46:20.580637 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:20.657642 git.c:462 trace: built-in: git config --null --type=path http.https://github.com.sslCAInfo
00:46:20.821651 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:20.885655 git.c:462 trace: built-in: git config --null --type=path http.github.com.sslCAInfo
00:46:20.946658 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:21.029663 git.c:462 trace: built-in: git config --null --type=path http.sslCAInfo
00:46:21.132669 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:21.286678 git.c:462 trace: built-in: git config --null --type=path http.https://github.com.sslCAInfo
00:46:21.361682 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:21.420685 git.c:462 trace: built-in: git config --null --type=path http.github.com.sslCAInfo
00:46:21.505690 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:21.554693 git.c:462 trace: built-in: git config --null --type=path http.sslCAInfo
00:46:21.593695 ...ClientFactory.cs:113 trace: [CreateClient] Custom certificate verification has been enabled with certificate bundle at C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
00:46:21.654699 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:21.718702 git.c:462 trace: built-in: git config --null --type=path http.https://github.com.cookieFile
00:46:21.771705 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:21.846710 git.c:462 trace: built-in: git config --null --type=path http.github.com.cookieFile
00:46:21.945715 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:22.017719 git.c:462 trace: built-in: git config --null --type=path http.cookieFile
fatal: An error occurred while sending the request.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitCredentialManager.Authentication.OAuth.OAuth2Client.<GetTokenByAuthorizationCodeAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubAuthentication.<GetOAuthTokenViaBrowserAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubHostProvider.<GenerateOAuthCredentialAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubHostProvider.<GenerateCredentialAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubHostProvider.<GetCredentialAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitCredentialManager.Commands.GetCommand.<ExecuteInternalAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at GitCredentialManager.Commands.GitCommandBase.<ExecuteAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Invocation.AnonymousCommandHandler.<InvokeAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass15_0.<<AddMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()
fatal: De aanvraag is afgebroken: Kan geen beveiligd SSL/TLS-kanaal maken.
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
00:46:24.952887 run-command.c:661 trace: run_command: 'C:/Program Files/Git/mingw64/bin/git-askpass.exe' 'Username for '\''https://github.com'\'': '
00:46:35.893513 run-command.c:661 trace: run_command: 'C:/Program Files/Git/mingw64/bin/git-askpass.exe' 'Password for '\''https://[email protected]'\'': '
00:46:42.856911 run-command.c:661 trace: run_command: 'git credential-manager erase'
00:46:43.091925 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:43.165929 git.c:748 trace: exec: git-credential-manager erase
00:46:43.165929 run-command.c:661 trace: run_command: git-credential-manager erase
00:46:43.543951 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:43.585953 git.c:462 trace: built-in: git config --null --list
00:46:43.749963 ...\Application.cs:106 trace: [RunInternalAsync] Version: 2.2.2.0
00:46:43.782964 ...\Application.cs:107 trace: [RunInternalAsync] Runtime: .NET Framework 4.0.30319.42000
00:46:43.784965 ...\Application.cs:108 trace: [RunInternalAsync] Platform: Windows (x86-64)
00:46:43.786965 ...\Application.cs:109 trace: [RunInternalAsync] OSVersion: 6.1 (build 7601)
00:46:43.787965 ...\Application.cs:110 trace: [RunInternalAsync] AppPath: C:\Program Files\Git\mingw64\bin\git-credential-manager.exe
00:46:43.788965 ...\Application.cs:111 trace: [RunInternalAsync] InstallDir: C:\Program Files\Git\mingw64\bin\
00:46:43.788965 ...\Application.cs:112 trace: [RunInternalAsync] Arguments: erase
00:46:43.955974 ...GitCommandBase.cs:32 trace: [ExecuteAsync] Start 'erase' command...
00:46:43.976975 ...GitCommandBase.cs:46 trace: [ExecuteAsync] Detecting host provider for input:
00:46:43.989976 ...GitCommandBase.cs:47 trace: [ExecuteAsync] protocol=https
00:46:43.990976 ...GitCommandBase.cs:47 trace: [ExecuteAsync] host=github.com
00:46:43.997977 ...GitCommandBase.cs:47 trace: [ExecuteAsync] username=TMartinot
00:46:43.997977 ...GitCommandBase.cs:47 trace: [ExecuteAsync] password=********
00:46:43.997977 ...GitCommandBase.cs:47 trace: [ExecuteAsync] wwwauth=Basic realm="GitHub"
00:46:44.014978 ...viderRegistry.cs:149 trace: [GetProviderAsync] Performing auto-detection of host provider.
00:46:44.017978 ...viderRegistry.cs:162 trace: [GetProviderAsync] Auto-detect probe timeout is 2 ms.
00:46:44.021978 ...viderRegistry.cs:170 trace: [GetProviderAsync] Checking against 4 host providers registered with priority 'Normal'.
00:46:44.033979 ...GitCommandBase.cs:49 trace: [ExecuteAsync] Host provider 'GitHub' was selected.
00:46:44.038979 ...bHostProvider.cs:270 trace: [EraseCredentialAsync] Erasing stored credential in store with service=https://github.com account=TMartinot...
00:46:44.055980 ...bHostProvider.cs:277 trace: [EraseCredentialAsync] No credential was erased.
00:46:44.056980 ...GitCommandBase.cs:53 trace: [ExecuteAsync] End 'erase' command...
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/TMartinot/<repository-name>.git/'
Sign in with a code option
C:\Users\<Username>\Directory> GIT_TRACE=1 GCM_TRACE=1 git clone https://github.com/TMartinot/<repository-name>.git
00:46:55.584639 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
00:46:55.647643 git.c:462 trace: built-in: git clone https://github.com/TMartinot/<repository-name>.git
Cloning into 'hospi-app'...
00:46:55.868656 run-command.c:661 trace: run_command: git remote-https origin https://github.com/TMartinot/<repository-name>.git
00:46:55.978662 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:56.035665 git.c:748 trace: exec: git-remote-https origin https://github.com/TMartinot/<repository-name>.git
00:46:56.035665 run-command.c:661 trace: run_command: git-remote-https origin https://github.com/TMartinot/<repository-name>.git
00:46:56.132671 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:57.360741 run-command.c:661 trace: run_command: 'git credential-manager get'
00:46:57.612755 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:57.724762 git.c:748 trace: exec: git-credential-manager get
00:46:57.725762 run-command.c:661 trace: run_command: git-credential-manager get
00:46:58.103783 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:58.148786 git.c:462 trace: built-in: git config --null --list
00:46:58.384800 ...\Application.cs:106 trace: [RunInternalAsync] Version: 2.2.2.0
00:46:58.424802 ...\Application.cs:107 trace: [RunInternalAsync] Runtime: .NET Framework 4.0.30319.42000
00:46:58.424802 ...\Application.cs:108 trace: [RunInternalAsync] Platform: Windows (x86-64)
00:46:58.424802 ...\Application.cs:109 trace: [RunInternalAsync] OSVersion: 6.1 (build 7601)
00:46:58.425802 ...\Application.cs:110 trace: [RunInternalAsync] AppPath: C:\Program Files\Git\mingw64\bin\git-credential-manager.exe
00:46:58.425802 ...\Application.cs:111 trace: [RunInternalAsync] InstallDir: C:\Program Files\Git\mingw64\bin\
00:46:58.425802 ...\Application.cs:112 trace: [RunInternalAsync] Arguments: get
00:46:58.559810 ...GitCommandBase.cs:32 trace: [ExecuteAsync] Start 'get' command...
00:46:58.597812 ...GitCommandBase.cs:46 trace: [ExecuteAsync] Detecting host provider for input:
00:46:58.603812 ...GitCommandBase.cs:47 trace: [ExecuteAsync] protocol=https
00:46:58.604812 ...GitCommandBase.cs:47 trace: [ExecuteAsync] host=github.com
00:46:58.604812 ...GitCommandBase.cs:47 trace: [ExecuteAsync] wwwauth=Basic realm="GitHub"
00:46:58.625813 ...viderRegistry.cs:149 trace: [GetProviderAsync] Performing auto-detection of host provider.
00:46:58.626813 ...viderRegistry.cs:162 trace: [GetProviderAsync] Auto-detect probe timeout is 2 ms.
00:46:58.630814 ...viderRegistry.cs:170 trace: [GetProviderAsync] Checking against 4 host providers registered with priority 'Normal'.
00:46:58.637814 ...GitCommandBase.cs:49 trace: [ExecuteAsync] Host provider 'GitHub' was selected.
00:46:58.669816 ...bHostProvider.cs:142 trace: [GetCredentialAsync] Found 0 accounts in the store for service=https://github.com.
00:46:58.674816 ...bHostProvider.cs:218 trace: [FilterAccounts] Account filtering is enabled.
00:46:58.693817 ...bHostProvider.cs:226 trace: [FilterAccounts] Filtering based on WWW-Authenticate header information...
00:46:58.695817 ...bHostProvider.cs:229 trace: [FilterAccounts] Matched 0 accounts with public domain:
00:46:58.696817 ...bHostProvider.cs:181 trace: [GetCredentialAsync] No existing credentials found.
00:46:58.697817 ...bHostProvider.cs:184 trace: [GetCredentialAsync] Creating new credential...
00:46:58.713818 ...bHostProvider.cs:420 trace: [GetSupportedAuthenticationModesAsync] https://github.com/ is github.com - authentication schemes: 'Pat, OAuth'
00:46:58.780822 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:58.848826 git.c:462 trace: built-in: git version
00:46:58.940831 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:59.009835 git.c:462 trace: built-in: git config --null --type=path credential.https://github.com.gitHubHelper
00:46:59.095840 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:59.169844 git.c:462 trace: built-in: git config --null --type=path credential.github.com.gitHubHelper
00:46:59.242849 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:46:59.311853 git.c:462 trace: built-in: git config --null --type=path credential.gitHubHelper
00:47:08.763393 ...pClientFactory.cs:60 trace: [CreateClient] Creating new HTTP client instance...
00:47:08.936403 ...pClientFactory.cs:80 trace: [CreateClient] Git's SSL/TLS backend is: OpenSsl
00:47:08.985406 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:47:09.049410 git.c:462 trace: built-in: git config --null --type=path http.https://github.com.sslCAInfo
00:47:09.128414 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:47:09.194418 git.c:462 trace: built-in: git config --null --type=path http.github.com.sslCAInfo
00:47:09.278423 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:47:09.329426 git.c:462 trace: built-in: git config --null --type=path http.sslCAInfo
00:47:09.437432 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:47:09.508436 git.c:462 trace: built-in: git config --null --type=path http.https://github.com.sslCAInfo
00:47:09.598441 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:47:09.699447 git.c:462 trace: built-in: git config --null --type=path http.github.com.sslCAInfo
00:47:09.786452 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:47:09.865456 git.c:462 trace: built-in: git config --null --type=path http.sslCAInfo
00:47:09.874457 ...ClientFactory.cs:113 trace: [CreateClient] Custom certificate verification has been enabled with certificate bundle at C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
00:47:09.954461 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:47:10.037466 git.c:462 trace: built-in: git config --null --type=path http.https://github.com.cookieFile
00:47:10.093469 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:47:10.143472 git.c:462 trace: built-in: git config --null --type=path http.github.com.cookieFile
00:47:10.329483 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:47:10.375485 git.c:462 trace: built-in: git config --null --type=path http.cookieFile
fatal: An error occurred while sending the request.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitCredentialManager.Authentication.OAuth.OAuth2Client.<GetDeviceCodeAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubAuthentication.<GetOAuthTokenViaDeviceCodeAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubHostProvider.<GenerateOAuthCredentialAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubHostProvider.<GenerateCredentialAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitHub.GitHubHostProvider.<GetCredentialAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GitCredentialManager.Commands.GetCommand.<ExecuteInternalAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at GitCredentialManager.Commands.GitCommandBase.<ExecuteAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Invocation.AnonymousCommandHandler.<InvokeAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass15_0.<<AddMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()
fatal: De aanvraag is afgebroken: Kan geen beveiligd SSL/TLS-kanaal maken.
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
00:47:11.075525 run-command.c:661 trace: run_command: 'C:/Program Files/Git/mingw64/bin/git-askpass.exe' 'Username for '\''https://github.com'\'': '
00:47:21.984149 run-command.c:661 trace: run_command: 'C:/Program Files/Git/mingw64/bin/git-askpass.exe' 'Password for '\''https://[email protected]'\'': '
00:47:36.473978 run-command.c:661 trace: run_command: 'git credential-manager erase'
00:47:36.727993 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:47:36.782996 git.c:748 trace: exec: git-credential-manager erase
00:47:36.782996 run-command.c:661 trace: run_command: git-credential-manager erase
00:47:37.184019 exec-cmd.c:243 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
00:47:37.236022 git.c:462 trace: built-in: git config --null --list
00:47:37.402031 ...\Application.cs:106 trace: [RunInternalAsync] Version: 2.2.2.0
00:47:37.450034 ...\Application.cs:107 trace: [RunInternalAsync] Runtime: .NET Framework 4.0.30319.42000
00:47:37.450034 ...\Application.cs:108 trace: [RunInternalAsync] Platform: Windows (x86-64)
00:47:37.450034 ...\Application.cs:109 trace: [RunInternalAsync] OSVersion: 6.1 (build 7601)
00:47:37.450034 ...\Application.cs:110 trace: [RunInternalAsync] AppPath: C:\Program Files\Git\mingw64\bin\git-credential-manager.exe
00:47:37.451034 ...\Application.cs:111 trace: [RunInternalAsync] InstallDir: C:\Program Files\Git\mingw64\bin\
00:47:37.451034 ...\Application.cs:112 trace: [RunInternalAsync] Arguments: erase
00:47:37.609043 ...GitCommandBase.cs:32 trace: [ExecuteAsync] Start 'erase' command...
00:47:37.633044 ...GitCommandBase.cs:46 trace: [ExecuteAsync] Detecting host provider for input:
00:47:37.642045 ...GitCommandBase.cs:47 trace: [ExecuteAsync] protocol=https
00:47:37.643045 ...GitCommandBase.cs:47 trace: [ExecuteAsync] host=github.com
00:47:37.644045 ...GitCommandBase.cs:47 trace: [ExecuteAsync] username=TMartinot
00:47:37.647045 ...GitCommandBase.cs:47 trace: [ExecuteAsync] password=********
00:47:37.648045 ...GitCommandBase.cs:47 trace: [ExecuteAsync] wwwauth=Basic realm="GitHub"
00:47:37.668046 ...viderRegistry.cs:149 trace: [GetProviderAsync] Performing auto-detection of host provider.
00:47:37.669046 ...viderRegistry.cs:162 trace: [GetProviderAsync] Auto-detect probe timeout is 2 ms.
00:47:37.679047 ...viderRegistry.cs:170 trace: [GetProviderAsync] Checking against 4 host providers registered with priority 'Normal'.
00:47:37.686047 ...GitCommandBase.cs:49 trace: [ExecuteAsync] Host provider 'GitHub' was selected.
00:47:37.693048 ...bHostProvider.cs:270 trace: [EraseCredentialAsync] Erasing stored credential in store with service=https://github.com account=TMartinot...
00:47:37.715049 ...bHostProvider.cs:277 trace: [EraseCredentialAsync] No credential was erased.
00:47:37.716049 ...GitCommandBase.cs:53 trace: [ExecuteAsync] End 'erase' command...
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/TMartinot/<repository-name>.git/'
Update
I have no issue cloning my own public repository, but when I want to push to it I need to authenticate hence resulting in an error.
fatal: An error occurred while sending the request.
fatal: De aanvraag is afgebroken: Kan geen beveiligd SSL/TLS-kanaal maken.
# Translation
> The request was aborted: Unable to create a secure SSL/TLS channel
Looks like there's now a new problem with trying to make outgoing connections in the first place. Have you attempted to configure self-signed certificates / does your remote require specific TLS certificates to connect?
Also, do you know if you have enabled TLS 1.2 in Windows? I know Windows 7 does not support TLS 1.2 unless you're on SP1 and have enabled this registry key: https://learn.microsoft.com/en-us/mem/configmgr/core/plan-design/security/enable-tls-1-2-client
My remotes are just default GitHub repositories and do not require specific TLS certificates to connect.
When trying to enable TLS 1.2 on Windows 7 SP1 I encountered some problems. Having followed the link to Microsoft you mentioned I started by checking whether the appropriate software (updates) were installed on the machine. The next step is very important according to the Microsoft documentation:
Verify the value of the
DefaultSecureProtocolsregistry setting.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp\ DefaultSecureProtocols = (DWORD): 0xAA0 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp\ DefaultSecureProtocols = (DWORD): 0xAA0
The paths were there except from the very last folder/file, the DefaultSecureProtocols file was nowhere to find and hence I'm not able to change nor check these values in regedit. I am hesitant moving forward without those being right, since you might inadvertently orphan the protocols if not done right, according to the docs.