git:fatal: HTTP request failed

git clone http://github.com/TOGoS/TUN2UDP.git的时候出现

error: while accessing http://github.com/TOGoS/TUN2UDP.git/info/refs

fatal: HTTP request failed

网上说的git版本问题 http.sslVerify问题都不能解决我的问题

分析过程:

curl -v  http://github.com/TOGoS/TUN2UDP.git/info/refs

* About to connect() to github.com port 443 (#0)

*  Trying 13.229.188.59... connected

* Connected to github.com (13.229.188.59) port 443 (#0)

* Initializing NSS with certpath: sql:/etc/pki/nssdb

*  CAfile: /etc/pki/tls/certs/ca-bundle.crt

  CApath: none

* NSS error -12190

* Closing connection #0

* SSL connect error

curl: (35) SSL connect error

在一个正常的机器上 curl -v  http://github.com/TOGoS/TUN2UDP.git/info/refs

* About to connect() to github.com port 443 (#0)

*  Trying 13.229.188.59...

* Connected to github.com (13.229.188.59) port 443 (#0)

* Initializing NSS with certpath: sql:/etc/pki/nssdb

*  CAfile: /etc/pki/tls/certs/ca-bundle.crt

  CApath: none

* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256

* Server certificate:

。。。。

查询NSS error -12190原因需要安装nss 相关和更新curl

yum update nss nss-util nspr

yum update curl

问题解决!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容