I've got an error: "The request was aborted: Could not create SSL/TLS secure channel"

Hello. I’m trying to make a simple operation: git push -u origin main
But! My attempts throw me the error:
fatal: An error occurred while sending the request.
fatal: The request was aborted: Could not create SSL/TLS secure channel.
I have no idea what possible reason is. I just want to complete Codeacademy lesson about Github :slight_smile:
Hope for your help.

By the way, the current git version 2.33.0.windows.1

1 Like

I also have the same problem with you. I’ll be waiting for the answer. Thank you for asking

I have the same problem and searching for a solution it seems that the issue is that I’m still using windows 7. That for default doesn’t support TLS 1.1 and 1.2
But found a solution here:


You follow the steps and the important one that will correct the issue is:
Enable TLS 1.1 and 1.2 on Windows 7 at the SChannel component level

Hope is helpful


Hi! Yep, I have Windows 7. Thank you for advice!

26 сентября 2021, 23:52:36, от “JorgeHinojosaAguilar via GitHub Support Community” <githubcommunity@discoursemail.com>:

The error is generic and there are many reasons why the SSL/TLS negotiation may fail. ServicePointManager.SecurityProtocol property selects the version of the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocol to use for new connections; existing c# connections aren’t changed. Make sure the ServicePointManager settings are made before the HttpWebRequest is created, else it will not work. Also, you have to enable other security protocol versions to resolve this issue:

ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
//createing HttpWebRequest after ServicePointManager settings
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://google.com/api/")

If you create HttpWebRequest before the ServicePointManager settings it will fail and shows the error message.

Thank you so much, it helped me. I also find a youtube video which is teaches how to enable TLS 1.2.

If anybody is getting this error “fatal: Response status code does not indicate success: 401 (Unauthorized).” even after installing the TLS 1.1 and 1.2 on Win7; what worked for me was to sign in using a personal code (first gui page, second option) instead of sign in on browser or with 2FA code.