Git 错误:1400410B:SSL例程:CONNECT\u CR\u SRVR\u HELLO:版本号错误

Git 错误:1400410B:SSL例程:CONNECT\u CR\u SRVR\u HELLO:版本号错误,git,Git,我无法使用https克隆任何github存储库,但克隆bitbucket/gitlab存储库是可以的 git克隆git@github.com:xxx/xxx.git 它起作用了 git克隆http://github.com/xxx/xxx.git 它也起作用 git克隆https://github.com/xxx/xxx.git 我得到了这个错误: Cloning into 'xxx'... fatal: unable to access 'https://github.com/xxx/xxx.

我无法使用https克隆任何github存储库,但克隆bitbucket/gitlab存储库是可以的

git克隆git@github.com:xxx/xxx.git
它起作用了

git克隆http://github.com/xxx/xxx.git
它也起作用

git克隆https://github.com/xxx/xxx.git
我得到了这个错误:

Cloning into 'xxx'...
fatal: unable to access 'https://github.com/xxx/xxx.git/': error:1400410B:SSL 
routines:CONNECT_CR_SRVR_HELLO:wrong version number
非常感谢您的任何建议/见解

注意:我可以使用SourceTree客户端克隆存储库

~/.gitconfig

删除以下内容:

#.gitcofig
[http”https://github.com"]
代理=https://127.0.0.1:1087
[https]https://github.com"]
代理=https://127.0.0.1:1087

在这三个URL中,以https://开头的URL是唯一使用SSL的URL。错误表明客户端的SSL不喜欢服务器的SSL。无论这意味着你的客户机错了,还是你的服务器错了,或者他们只是不说话,我们从这里无法分辨(但由于服务器是GitHub,他们通常被定义为“正确的”:)。您可以查看是否有更新可用于在您的客户端上提供SSL的任何内容。什么操作系统和什么版本的git?尝试升级git。问题是旧的OpenSSL版本。