gnutls_handshake()失败:拉函数出错


1

我的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.

WGET

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

我试图访问这个网站的任何其他方式也失败了所以它必须更深层次,这些请求在我尝试过的所有其他服务器上都是成功的。它会影响此服务器上的所有用户。我不在此服务器上使用任何代理。我该如何调试?

编辑

这是我尝试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
---

Answers:


3

经过一些分析后,我得出结论,原因必须是:

  1. 该主机已阻止我的IP在端口443上打开连接。
  2. 某种防火墙阻止我在端口443上打开连接。

我通过使用另一台服务器解决了它。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.