公司里的机器突然不能git clone了。

古怪。报错信息如下:

git clone https://github.com/httperf/httperf  
Cloning into 'httperf'...  
fatal: unable to access 'https://github.com/httperf/httperf/': SSL connect error  

见了鬼了,前几天还用的好好的,打开调试看看:

$> GIT_CURL_VERBOSE=1 git clone https://github.com/httperf/httperf
Cloning into 'httperf'...  
* Couldn't find host github.com in the .netrc file; using defaults
* About to connect() to github.com port 443 (#0)
*   Trying 192.30.253.113... * Connected to github.com (192.30.253.113) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS error -12190
* Error in TLS handshake, trying SSLv3...
> GET /httperf/httperf/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/2.4.8  
Host: github.com  
Accept: */*  
Accept-Encoding: gzip  
Accept-Language: en-US, *;q=0.9  
Pragma: no-cache

* Connection died, retrying a fresh connect
* Expire cleared
* Closing connection #0
* Issue another request to this URL: 'https://github.com/httperf/httperf/info/refs?service=git-upload-pack'
* Couldn't find host github.com in the .netrc file; using defaults
* About to connect() to github.com port 443 (#0)
*   Trying 192.30.253.113... * Connected to github.com (192.30.253.113) port 443 (#0)
* TLS disabled due to previous handshake failure
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS error -12286
* Expire cleared
* Closing connection #0
fatal: unable to access 'https://github.com/httperf/httperf/': SSL connect error  

无妄之灾啊,SSL错误

没办法,更新一下nss吧

yum update -y nss curl  

就好了。

comments powered by Disqus