我正在尝试使用 wget 检索资源,但是我不断收到以下错误:
Unable to establish SSL connection.
我尝试了以下命令:
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
两者都没有奏效。
详细日志:
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
我正在从码头工人容器运行它。如果我尝试通过我的机器访问资源,我就可以访问它。
任何关于解决这个问题的建议都非常感谢。
谢谢。
这很可能是由于客户端与服务器端的 TLS 版本不匹配。看看这里:
无法在 Ubuntu 14.04 LTS 上的 wget 上建立 SSL 连接
编辑:在进一步挖掘问题时,也可能是因为错误的系统时间或旧版本的wget。
这个命令解决了我的问题---> 须藤百胜更新 wget