0

I am trying to clone a git repository from our corporate git server and get:

Cloning into 'C:\git\<name_of_repository>... fatal: unable to access '<corporate_git_server_url>/<name_of_repository>.git/': schannel: CertGetNameString() failed to match connection hostname (<corporate_git_server_url>) against server certificate names. 

Obviously there is some issue with certificate, but I do not know where to look. Also it is strange as my colleagues successfully checked out the repository.

4
  • Can you provide us with the full command you're using to clone the repo (obviously redact any sensitive info) Commented Jun 13, 2018 at 13:21
  • i try to do this using the github desktop application Commented Jun 13, 2018 at 13:26
  • Do you use GitHub for Desktop? (not command line) Commented Jun 13, 2018 at 14:55
  • I'm having the same issue. Commented Jun 21, 2018 at 21:28

1 Answer 1

3

I had the same error pushing to a repo on visualstudio.com.

As it implies, there's some sort of an issue with schannel getting the certificate information.

Apparently you can change git's https transport. I changed mine from schannel to openssl and it fixed the issue.

>git config --global http.sslBackend "openssl" 
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, this worked for me. I was getting the schannel error on trying to check out a project through GitHub Enterprise through the desktop client. Updating the global .gitconfig fixed it. This should be the accepted answer.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.