Resolving Git SSL backend issue: 'schannel' not supported

Help needed with Git SSL error

I’m trying to use Git in WSL on Windows but I’m running into a problem. When I try to pull from my repo, I get this error:

fatal: Unsupported SSL backend 'schannel'. Supported SSL backends:
        gnutls

I’ve already tried setting the SSL backend to openssl:

git config http.sslBackend openssl
git config --global http.sslBackend openssl

I also installed gnutls-bin and some related packages. But the error still shows up.

My system info:

  • Debian 10 (buster)
  • Running in Windows WSL

Even when I try to clone a new repo, I get the same error. It’s not just for existing repos.

Here’s part of my Git config:

http.sslbackend=openssl
http.sslverify=false
http.emptyauth=true

Any ideas on how to fix this? I’m out of options and could really use some help. Thanks!

hmm, interesting problem! have u considered checking ur git version in WSL? sometimes theres compatibility issues between different versions. also, maybe try disabling ssl verification temporarily? like this:

git -c http.sslVerify=false clone <repo_url>

just remember to re-enable it later for security! what do u think?

It seems like you’re encountering a common SSL backend issue with Git in WSL. One potential solution is to manually specify the SSL backend when executing Git commands. Try prefixing your Git commands with GIT_SSL_BACKEND=openssl. For example:

GIT_SSL_BACKEND=openssl git pull

If this works, you can set it as an environment variable to avoid typing it each time:

export GIT_SSL_BACKEND=openssl

Additionally, ensure that libssl-dev is installed in your WSL environment:

sudo apt-get install libssl-dev

These steps should help resolve the SSL backend conflict and allow you to use Git normally within WSL.

have u tried updating git? sometimes old versions can cause weird ssl issues. also, check if ur PATH is set correctly for openssl. might be worth trying to reinstall git completely if nothing else works. good luck!