git clone http://github.com/TOGoS/TUN2UDP.git的時候出現(xiàn)
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
問題解決!