【问题标题】:error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number错误:1400410B:SSL 例程:CONNECT_CR_SRVR_HELLO:错误的版本号
【发布时间】:2018-09-27 11:46:32
【问题描述】:

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

git clone git@github.com:xxx/xxx.git 它有效。

git clone http://github.com/xxx/xxx.git 它也有效。

git clone 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 客户端克隆存储库

【问题讨论】:

  • 在这三个 URL 中,以https:// 开头的 URL 是唯一使用 SSL 的。该错误表明您的客户端的 SSL 不喜欢您的服务器的 SSL。这是否意味着您的客户端是错误的,或者您的服务器是错误的,或者他们只是不互相交谈,我们无法从这里判断(但由于服务器是 GitHub,因此根据定义,它们通常被认为是“正确的” :-) )。您可能会查看是否有可用于在您的客户端上提供 SSL 的更新。
  • 什么操作系统和什么版本的git?尝试升级 git。问题是 cannot establis secure connection with Github 的旧 OpenSSL 版本。

标签: git


【解决方案1】:

~/.gitconfig

删除以下内容

# .gitcofig
[http "https://github.com"]
    proxy = https://127.0.0.1:1087
[https "https://github.com"]
    proxy = https://127.0.0.1:1087

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-01-12
    • 2019-04-05
    • 1970-01-01
    • 2021-06-23
    • 2020-11-28
    • 1970-01-01
    • 2021-06-01
    • 1970-01-01
    相关资源
    最近更新 更多