jos*_*cul 3 wget curl ubuntu gnutls
我的 Ubuntu (Ubuntu 16.04.5 LTS) 服务器有问题。这很奇怪。当我尝试使用任何工具通过 ssl 获取特定 URL 时,它失败了。例子:
卷曲
curl -v https://www.netonnet.se/
* Trying 91.198.164.24...
* Connected to www.netonnet.se (91.198.164.24) port 443 (#0)
* found 148 certificates in /etc/ssl/certs/ca-certificates.crt
* found 596 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* gnutls_handshake() failed: Error in the pull function.
* Closing connection 0
curl: (35) gnutls_handshake() failed: Error in the pull function.
Run Code Online (Sandbox Code Playgroud)
工作组
wget -v https://www.netonnet.se/
--2018-12-29 12:00:42-- https://www.netonnet.se/
Resolving www.netonnet.se (www.netonnet.se)... 91.198.164.24
Connecting to www.netonnet.se (www.netonnet.se)|91.198.164.24|:443... connected.
Unable to establish SSL connection
Run Code Online (Sandbox Code Playgroud)
我尝试访问该网站的任何其他方式也会失败,因此它必须更深入一些,这些请求在我尝试过的所有其他服务器上都成功。它会影响此服务器上的所有用户。我不在此服务器上使用任何代理。我该如何调试?
编辑
这就是我尝试 openssl 时得到的结果。从主机获取证书似乎有问题。
# openssl s_client -servername www.netonnet.se -connect www.netonnet.se:443
CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 317 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.3
Cipher : 0000
Session-ID:
Session-ID-ctx:
Resumption PSK:
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1546109807
Timeout : 7200 (sec)
Verify return code: 0 (ok)
Extended master secret: no
Max Early Data: 0
---
Run Code Online (Sandbox Code Playgroud)
经过一些分析,我得出的结论是,原因必须是以下之一:
我通过使用另一台服务器解决了它。
| 归档时间: |
|
| 查看次数: |
18277 次 |
| 最近记录: |