卷曲错误tlsv1警报协议版本 [英] Curl error tlsv1 alert protocol version

查看:187
本文介绍了卷曲错误tlsv1警报协议版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下curl请求返回错误。有人可以解释哪里出了问题以及如何纠正。我已经尝试强制curl使用不同的ssl版本(--sslv3和--sslv2),但这没有用。

The following curl request returns an error. Can someone explain what is going wrong and how to correct it. I already tried to force curl to use different ssl versions (--sslv3 and --sslv2) but this did not work.

curl.exe --GET "https://www.expert.nl/" --verbose --insecure

响应:

* About to connect() to www.expert.nl port 443 (#0)
*   Trying 104.20.175.44... connected
* SSLv3, TLS handshake, Client hello (1):
* error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
* Closing connection #0
curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version


推荐答案

我通过更新curl解决了此问题。 (请检查curl版本和openssl版本,它们可能不匹配)

I solved this by updating the curl. (place check the curl version and openssl version, they may not match)

curl 7.12.1需要OpenSSL / 0.9.7a,但是我的OpenSSL是1.0.2m。

curl 7.12.1 need OpenSSL/0.9.7a but my OpenSSL is 1.0.2m.

详细信息:

~ $ curl -V
curl 7.12.1 (x86_64-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
~ $ openssl version
OpenSSL 1.0.2m  2 Nov 2017

这篇关于卷曲错误tlsv1警报协议版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆