我正在尝试使用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
我正在使用 Docker 容器运行此项任务。如果我尝试通过我的计算机访问资源,我能够成功访问。
非常感谢您提供的任何解决此问题的建议。
谢谢!
curl
?openssl s_client
?等等。请记住,这个网站不仅是为了解决你自己的问题,而且还为后来的人提供帮助。此外,你在这里离题了,请到ServerFault或SuperUser去提问。 - Patrick Mevzek