我正在尝试在我的办公系统中克隆一个 GitHub 项目。
set HTTPS_PROXY=http://<UN>:<PWD>@<PROXYSERVER>:<PORT>
set HTTP_PROXY=http://<UN>:<PWD>@<PROXYSERVER>:<PORT>
我已经设置了 HTTPS 并且 HTTP 代理也将 sslVerify 设置为 false
[https]
sslVerify = false
[http]
sslVerify = false
仍然,我收到“连接到 github.com:443 时出现未知 SSL 协议(protocol)错误”。
有人可以告诉我我需要做什么吗?
最佳答案
确保使用最新的 Git (2.12.2) 检查问题是否仍然存在。
如果是这样,请查看我在“Unknown SSL protocol error in connection”中提到的各种设置以进行调试:
# Windows
set GIT_CURL_VERBOSE=1
set GIT_TRACE_PACKET=2
# Unix
export GIT_CURL_VERBOSE=1
export GIT_TRACE_PACKET=2
2018 年 2 月更新:issue 587 之后(禁用 TLSv1.0 和禁用密码),这终于到位:不再使用 TLSv1.0。
请参阅“Discontinue support for weak cryptographic standards”,2018 年更新为“Weak cryptographic standards removal notice”。
On February 8, 2018 we’ll start disabling the following:
- TLSv1/TLSv1.1: This applies to all HTTPS connections, including web, API, and git connections to https://github.com and https://api.github.com.
- diffie-hellman-group1-sha1: This applies to all SSH connections to github.com
- diffie-hellman-group14-sha1: This applies to all SSH connections to github.com
所以请确保您:
- Git Credential Manager 高于 1.14.0
- RedHat 上的 Git(对于 RedHart)在 7.2 或更高版本中
- JDK 8以上。
关于Git 克隆 : Unknown SSL protocol error in connection to github. com:443,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43334847/