如何解决卷曲:(35)错误

时间:2017-01-07 03:15:12

标签: curl openssl centos5

如果我在CentOS 5机器上运行此命令:

title

我收到此错误:

curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony

但是,如果我跑:

curl: (35) error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

我明白了:

curl -v https://symfony.com/

使用-v选项,显然可以使用SSLv3。如何使用第一个命令才能成功建立连接?

编辑:

我已经将curl信息与curl确实有效的Redhat服务器进行了比较,结果如下:

My CentOS 5" curl -V"信息:

* About to connect() to symfony.com port 443 (#0)
*   Trying 176.34.106.156...
* Connected to symfony.com (176.34.106.156) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using AES128-SHA
* Server certificate:
*        subject: OU=Domain Control Validated; OU=Gandi Standard SSL; CN=symfony.com
*        start date: 2014-11-21 00:00:00 GMT
*        expire date: 2017-11-21 23:59:59 GMT
*        subjectAltName: symfony.com matched
*        issuer: C=FR; ST=Paris; L=Paris; O=Gandi; CN=Gandi Standard SSL CA 2
*        SSL certificate verify ok.
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: symfony.com
> Accept: */*
> 
< HTTP/1.1 200 OK
< Accept-Ranges: bytes
< Age: 138
< Cache-Control: public, s-maxage=600
< Content-Type: text/html; charset=UTF-8
< Date: Sat, 07 Jan 2017 03:05:08 GMT
< Server: nginx/1.4.6 (Ubuntu)
< Via: 1.1 varnish-v4
< X-Varnish: 168003559 167316902
< Content-Length: 34582
< Connection: keep-alive
< 

RedHat 6&#34; curl -V&#34;信息:

[root@orahost tls]# curl -V
curl 7.29.0 (i686-redhat-linux-gnu) libcurl/7.29.0 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz 

我注意到我的CentOS使用的是OpenSSL,而Redhat却没有。这可能是问题吗?

1 个答案:

答案 0 :(得分:-1)

您使用的是Mac OS吗?如果是这样尝试重新安装cURL:

var divs = document.createElement("div");
divs.classname="black-piece"
document.getElementByClassName("board")[0]

请参阅此链接以获取解释: https://unix.stackexchange.com/questions/192944/how-to-fix-curl-sslv3-alert-handshake-failure

还可以尝试:

brew install curl
brew link curl --force

为--sslv3添加-3选项。 以下是cURL的所有选项,以备不时之需: https://curl.haxx.se/docs/manpage.html

相关问题