Discussion:
gnutls_handshake() failed
bruce
2018-08-13 20:49:19 UTC
Permalink
Hi.

Running test curl from cmdline on ubuntu system.

The following gives a
gnutls_handshake() failed err


Any idea what I can check/correct/replace to resolve??

The test cmd:

curl -vvv -A 'Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Firefox/52.0' --cookie-jar
/crawl_tmp/a7e3e9f0-9f15-11e8-bc47-2ee53d3855da.lwp --cookie
/crawl_tmp/a7e3e9f0-9f15-11e8-bc47-2ee53d3855da.lwp -H 'Content-Type:
application/x-www-form-urlencoded' --compressed --keepalive -L
'https://www.bkstr.com/'
* Trying 23.193.184.69...
* Connected to www.bkstr.com (23.193.184.69) 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: The TLS connection was non-properly terminated.
* Closing connection 0
curl: (35) gnutls_handshake() failed: The TLS connection was
non-properly terminated.
***@ubuntu-512mb-nyc1-dec-25-2017-512mb-nyc1-02:/$ curl -vvv
-A 'Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Firefox/52.0' -L 'https://www.yahoo.com/'
* Trying 98.138.219.232...
* Connected to www.yahoo.com (98.138.219.232) 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 push function.
* Closing connection 0
curl: (35) gnutls_handshake() failed: Error in the push function.

Thanks for any comments/thoughts...
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquet
Daniel Stenberg
2018-08-14 07:58:32 UTC
Permalink
Post by bruce
The following gives a
gnutls_handshake() failed err
Any idea what I can check/correct/replace to resolve??
...
Post by bruce
$ curl -v 'https://www.yahoo.com/'
curl: (35) gnutls_handshake() failed: Error in the push function.
I just tried my curl (7.61.0) with GnuTLS/3.5.19 and the same URL with no
problems. I also tried with the OpenSSL backend with no problems.

It could suggest that your problem might be your GnuTLS version or that
something (firewall/NAT) in your network path breaks the TLS handshake for
you.
--
/ daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/ma
Loading...