wget ssl警报握手失败

编程入门 行业动态 更新时间:2024-10-27 04:30:10
本文介绍了wget ssl警报握手失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试从https网站下载文件并继续收到以下错误:

I am trying to download files from an https site and keep getting the following error:

OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure Unable to establish SSL connection.

从网上阅读博客我收集到必须提供服务器证书和客户端证书。我找到了如何下载服务器证书而不是客户端证书的步骤。有没有人有一套完整的步骤来使用wget与SSL?我也尝试了--no-check-certificate选项,但是没有用。

From reading blogs online I gather I have to provide the server cert and the client cert. I have found steps on how to download the server cert but not the client cert. Does anyone have a complete set of steps to use wget with SSL? I also tried the --no-check-certificate option but that did not work.

wget版本:wget-1.13.4 openssl版本:OpenSSL 1.0 .1f 2014年1月6日

wget version: wget-1.13.4 openssl version: OpenSSL 1.0.1f 6 Jan 2014

尝试从coursera上的课程网页下载所有讲座资源。因此,URL看起来像这样: class.coursera/matrix-002 /讲座

trying to download all lecture resources from a course's webpage on coursera. So, the URL would look something like this: class.coursera/matrix-002/lecture

在线访问此网页需要表单身份验证,不确定是否导致失败。

Accessing this webpage online requires form authentication, not sure if that is causing the failure.

推荐答案

它可以在这里使用相同的OpenSSL版本,但更新版本的wget(1.15)。查看更改日志,您的问题有以下重大变化:

It works from here with same OpenSSL version, but a newer version of wget (1.15). Looking at the Changelog there is the following significant change regarding your problem:

1.14:添加对TLS服务器名称指示的支持。

1.14: Add support for TLS Server Name Indication.

请注意,此网站不需要SNI。但 www.coursera 需要它。 如果您使用 -v --debug 调用wget(正如我在评论中明确建议的那样),您将看到:

Note that this site does not require SNI. But www.coursera requires it. And if you would call wget with -v --debug (as I've explicitly recommended in my comment!) you will see:

$ wget class.coursera ... HTTP request sent, awaiting response... HTTP/1.1 302 Found ... Location: www.coursera/ [following] ... Connecting to www.coursera (www.coursera)|54.230.46.78|:443... connected. OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure Unable to establish SSL connection.

所以错误确实发生在 www.coursera ,原因是缺少对SNI的支持。您需要升级您的wget版本。

So the error actually happens with www.coursera and the reason is missing support for SNI. You need to upgrade your version of wget.

更多推荐

wget ssl警报握手失败

本文发布于:2023-06-02 14:48:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/447347.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   wget   ssl

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!