curl gnutls_handshake失败的TLS连接未正确终止

时间:2018-11-14 02:51:35

标签: rest api curl

我想使用以下命令从我的自定义Haystack服务中获取信息 curl -v -X GET https://<myIP>:8443/api/haystack/about失败,以下是上述命令的日志

Note: Unnecessary use of -X or --request, GET is already inferred.
*   Trying <myproxy-ip>...
* Connected to proxy.example.com (myproxy-ip) port 911 (#0)
* Establish HTTP proxy tunnel to <myIP>:8443
> CONNECT <myIP>:8443 HTTP/1.1
> Host: <myIP>:8443
> User-Agent: curl/7.47.0
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 Connection established
<
* Proxy replied OK to CONNECT request
* found 148 certificates in /etc/ssl/certs/ca-certificates.crt
* found 597 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* gnutls_handshake() failed: The TLS connection was non-properly terminated.
* Closing connection 0
curl: (35) gnutls_handshake() failed: The TLS connection was non-properly terminated.

与此同时,Haystack服务具有一个前端Web门户,当我使用Chrome浏览器时,我可以看到警告Privacy ErrorNET::ERR_CERT_AUTHORITY_INVALID,但是我仍然可以在浏览器上继续操作。我想这可能是导致我的curl失败的原因。

有什么主意吗? 谢谢

0 个答案:

没有答案