centos6.3 下出现fatal unable to access ssl connect error

centos6.3下ssl证书问题导致gitclone/curlgithub的资源都会失败
$curl-vhttps://github.com
*Abouttoconnect()togithub.comport443(#0)
*Trying52.74.223.119...connected
*Connectedtogithub.com(52.74.223.119)port443(#0)
*InitializingNSSwithcertpath:sql:/etc/pki/nssdb
*CAfile:/etc/pki/tls/certs/ca-bundle.crt
CApath:none
*NSSerror-12190
*ErrorinTLShandshake,tryingSSLv3...
>GET/HTTP/1.1
>User-Agent:curl/7.19.7(x86_64-redhat-linux-gnu)libcurl/7.19.7NSS/3.13.1.0zlib/1.2.3libidn/1.18libssh2/1.2.2
>Host:github.com
>Accept:*/*
>
*Connectiondied,retryingafreshconnect
*Closingconnection#0
*IssueanotherrequesttothisURL:'https://github.com'
*Abouttoconnect()togithub.comport443(#0)
*Trying52.74.223.119...connected
*Connectedtogithub.com(52.74.223.119)port443(#0)
*TLSdisabledduetoprevioushandshakefailure
*CAfile:/etc/pki/tls/certs/ca-bundle.crt
CApath:none
*NSSerror-12286
*Closingconnection#0
*SSLconnecterror
curl:(35)SSLconnecterror
$gitclonehttps://github.com/motemen/gore.git
Cloninginto'gore'...
fatal:unabletoaccess'https://github.com/motemen/gore.git/':SSLconnecterror
所以goget等依赖git的工具也会失败。
系统环境:
CentOSrelease6.3(Final)
很大可能是github不在支持老的加密方式,升级到CentOS6.8以上即可
https://www.v2ex.com/t/434848
如果不想升级,有什么办法吗?
网上给出的基本上是升级nss相关包
yumupdate-ynsscurllibcurl
可是我这里还是没生效
慕桂英4014372
浏览 892回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript