wget 返回“无法建立 SSL 连接”

afo*_*alv 5 linux ubuntu ssl wget

我正在尝试使用 wget 检索资源,但是我一直收到以下错误:

Unable to establish SSL connection.
Run Code Online (Sandbox Code Playgroud)

我尝试了以下命令:

wget -d https://resourcesource.com/spring-boot-starter-parent-2.0.0.RELEASE.pom 
wget --no-check-certificate -d https://resourcesource.com/spring-boot-starter-parent-2.0.0.RELEASE.pom 
Run Code Online (Sandbox Code Playgroud)

两者都没有奏效。

详细日志:

Resolving resourcesource.com (resourcesource.com)... {ip address}
Caching resourcesource.com => {ip address}
Connecting to resourcesource.com 
(resourcesource.com)|{ip address}:443... connected.
Created socket 3.
Releasing 0x000055c98ca7a8d0 (new refcount 1).
Initiating SSL handshake.
SSL handshake failed.
Closed fd 3
Unable to establish SSL connection.
Saving HSTS entries to /root/.wget-hsts
Run Code Online (Sandbox Code Playgroud)

我正在从 docker 容器运行它。如果我尝试通过我的机器访问资源,我就可以访问它。

非常感谢有关解决此问题的任何建议。

谢谢你。

n00*_*0ne 1

这很可能是由于客户端与服务器端的 TLS 版本不匹配造成的。看看这里:

无法在 Ubuntu 14.04 LTS 上的 wget 上建立 SSL 连接

编辑:进一步深入研究问题后,也可能是由于系统时间错误或 wget 版本旧所致。