我安装并编译了curl和openssl。
然后我尝试通过https协议git clone
。
当我从终端执行curl
命令时,它可以正常工作,但当我执行git clone
时,它失败并显示错误WARNING: failed to configure server name indication (SNI) TLS extension
这是我的卷曲版本。
curl -V
curl 7.42.1 (i686-pc-linux-gnu) libcurl/7.42.1 OpenSSL/1.0.2a zlib/1.2.11 libidn/0.6.5
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
当我git clone
GIT_CURL_VERBOSE=1 git clone https://github.com/test/test.git
Cloning into 'test'...
* Couldn't find host github.com in the .netrc file; using defaults
* Trying 192.30.255.112...
* Connected to github.com (192.30.255.112) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* WARNING: failed to configure server name indication (SNI) TLS extension
我正在使用Cent OS 5.2.9
由于某种原因,我无法更新操作系统版本。
有没有人熟悉这个问题?
Cent OS v5.2.9
Git v2.16.2
curl v7.42.1
Openssl v1.0.2a