鍍金池/ 問答/GO  Linux  HTML/ centos6.3 下出現(xiàn)fatal unable to access ssl

centos6.3 下出現(xiàn)fatal unable to access ssl connect error

centos6.3下ssl證書問題導(dǎo)致git clone / curl github的資源都會失敗

$ curl -v https://github.com
* About to connect() to github.com port 443 (#0)
*   Trying 52.74.223.119... connected
* Connected to github.com (52.74.223.119) 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 / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
> Host: github.com
> Accept: */*
>
* Connection died, retrying a fresh connect
* Closing connection #0
* Issue another request to this URL: 'https://github.com'
* About to connect() to github.com port 443 (#0)
*   Trying 52.74.223.119... connected
* Connected to github.com (52.74.223.119) port 443 (#0)
* TLS disabled due to previous handshake failure
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS error -12286
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error
$ git clone https://github.com/motemen/gore.git
Cloning into 'gore'...
fatal: unable to access 'https://github.com/motemen/gore.git/': SSL connect error

所以go get等依賴git的工具也會失敗。

系統(tǒng)環(huán)境:

CentOS release 6.3 (Final)

很大可能是github不在支持老的加密方式,升級到 CentOS 6.8以上即可

https://www.v2ex.com/t/434848

如果不想升級,有什么辦法嗎?

網(wǎng)上給出的基本上是升級nss相關(guān)包

yum update -y nss curl libcurl

可是我這里還是沒生效

回答
編輯回答
糖果果

https://blog.csdn.net/flynetc...
https://www.cnblogs.com/qiumi...

直接繞開ssl認(rèn)證應(yīng)該可以?

2018年2月13日 21:35