从git存储库克隆时出现TLS错误

时间:2014-08-11 12:23:09

标签: git ssl github clone

尝试从作为ONL(开放式网络Linux)构建过程的一部分的GIT存储库进行克隆时,我收到以下错误。有没有人对此有所了解?这是在Ubuntu 13.10框上。

error: gnutls_handshake() failed: A TLS warning alert has been received while
    accessing https://git.buildroot.net/buildroot/info/refs
fatal: HTTP request failed
Clone of 'git://git.buildroot.net/buildroot' into submodule path 'buildroot' failed

以下是gnutls实用程序的输出。看起来证书中的主机名不匹配。有没有办法跳过这个验证?我已经尝试在git配置中将sslverify设置为FALSE,但它没有帮助。

root@ubuntu:~/git-openssl/git-1.8.3.2# gnutls-cli -p 443 git.buildroot.net
Resolving 'git.buildroot.net'...
Connecting to '140.211.167.224:443'...
*** Non fatal error: A TLS warning alert has been received.
*** Received alert [112]: The server name sent was not recognized
- Certificate type: X.509
 - Got a certificate list of 1 certificates.
 - Certificate[0] info:
  - subject `C=US,ST=OR,L=Corvallis,O=OSU Open Source Lab,CN=busybox.net,EMAIL=dnsadmin@osuosl.org', 
    issuer `C=US,ST=OR,O=OSU Open Source Lab,CN=OSU Open Source Lab CA,EMAIL=dnsadmin@osuosl.org',
    RSA key 2048 bits, signed using RSA-SHA1, activated `2013-01-25 01:31:38 UTC', expires
    `2015-01-25 01:31:38 UTC', SHA-1 fingerprint `e229f69e98cc9065e29cde829e79201dc0ad833c'
- The hostname in the certificate does NOT match 'git.buildroot.net'

1 个答案:

答案 0 :(得分:2)

证书颁发给busybox.net,这是导致错误的根本原因。

简单的解决方案是删除https://并使用http://,因为该网址位于http://git.buildroot.net/buildroot/info/refs