git clone:致命:gnutls_handshake()失败了

时间:2013-12-04 06:21:41

标签: git openssl debian gnutls

最近,我试图从我的debian(jessie)框中克隆一个git repo,我面对的是:

fatal: unable to access 'https://github.com/foo/bar/': gnutls_handshake() failed: A TLS packet with unexpected length was received.

正如ubuntu folks所提到的,我使用了用openssl编译的git,现在我得到了:

fatal: unable to access 'https://github.com/foo/bar/': Unknown SSL protocol error in connection to github.com:443

1 个答案:

答案 0 :(得分:0)

客户端解决方案非常有效。

然而,当我们可以在服务器上修复并完成它时,要求每个人重新编译他们的基本git可执行文件并不总是切实可行。

(注意:这仅在您拥有git服务器的管理员权限时才有效。)

编辑:

/etc/apache2/sites-enabled/config-file-whatever-it-is.conf

并添加ServerName my.sampleserver.com

ServerName引用:

https://httpd.apache.org/docs/current/vhosts/name-based.html

特别感谢解决方案:

https://www.progclub.org/blog/2014/09/03/gnutls_handshake-failed-using-git/

相关问题