【发布时间】:2019-05-30 11:12:38
【问题描述】:
我在尝试使用 Curl 连接到启用 HTTPS 的旧网站时遇到以下错误:
curl https://10.11.1.44
curl: (35) error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
更详细:
* Expire in 0 ms for 6 (transfer 0x55a4192abdd0)
* Trying 10.11.1.44...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x55a4192abdd0)
* Connected to 10.11.1.44 (10.11.1.44) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (OUT), TLS alert, protocol version (582):
* error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
* Closing connection 0
curl: (35) error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
如果我尝试使用 --ssl2 或 --ssl3 选项,我会收到以下错误:
root@kali:~# curl https://10.11.1.44/ --sslv2
curl: (4) OpenSSL was built without SSLv2 support
root@kali:~# curl https://10.11.1.44/ --sslv3
curl: (4) OpenSSL was built without SSLv3 support
我已经查阅了以下页面,了解如何使用 SSL2/3 支持构建 Curl,但我不确定如何启用它?
https://curl.haxx.se/docs/install.html
有什么想法吗?
【问题讨论】:
-
这里的明智解决方案是升级 10.11.1.44 的服务器以支持 TLS,而不是降级 curl 以支持 SSL,如果可能的话,您应该这样做。不过,如果这不可行,请阅读下面的答案(我这样做的个人借口是,对戴尔 DRAC 固件进行逆向工程以将 DRAC Web 服务器更改为古老的服务器 x.x 是不可行的)
标签: curl ubuntu-18.04