16.04 - curl:(35) gnutls_handshake() 失敗:拉取函數出錯

16.04 - curl:(35) gnutls_handshake() 失敗:拉取函數出錯

當嘗試連接到 HTTPS 網站時,我收到此錯誤curl: (35) gnutls_handshake() failed: Error in the pull function.

詳細地:

curl -vvv "https://example.tld"
* Rebuilt URL to: https://example.tld/
*   Trying 1.2.3.4...
* Connected to example.tld (1.2.3.4) port 443 (#0)
* found 148 certificates in /etc/ssl/certs/ca-certificates.crt
* found 592 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.

該網站的 TLS 配置似乎配置正確。

更多資訊:

$ curl -V
curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:    16.04
Codename:   xenial

答案1

當我嘗試訪問統計頁面時,我收到了確切的消息https://mmonit.com/monit/透過 https 安裝,同時沒有將我的客戶端 IP 列入白名單來監控設定檔。

當然,您的問題與 monit 無關,但也許有什麼東西以同樣的方式阻止請求(例如防火牆),因此 ssl 握手不會通過。

相關內容