helpGnuTLS - Support: sr #107954, Fails to connect to...


sr #107954: Fails to connect to Handshake has failed

Submitter:  Sebastien Helleu <flashcode>
Submitted:  Sat 11 Feb 2012 09:29:13 AM UTC
Category:  Core library Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  nmav
Open/Closed:  Closed Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Sat 11 Feb 2012 10:13:29 AM UTC, comment #2: 

Thank you, now it's working in WeeChat by forcing priority, using the string in your link.

Sebastien Helleu <flashcode>
Sat 11 Feb 2012 09:48:13 AM UTC, comment #1: 

 I tried gnutls-cli-debug, and didn't show anything curious. However by trying each protocol version separately I noticed that this server breaks if it sees TLS 1.2. If you disable it you'll be able to connect fine.

Nikos Mavrogiannopoulos <nmav>
Project Administrator
Sat 11 Feb 2012 09:29:13 AM UTC, original submission:  


I'm author of WeeChat, an IRC client.
I have a problem connecting to server in WeeChat, so I tried with gnutls-cli and have same problem, here is the output of command:

$ gnutls-cli -v
gnutls-cli (GnuTLS) 3.0.12
Packaged by Debian (3.0.12-2)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Nikos Mavrogiannopoulos.

$ gnutls-cli -d 2 -p 6697
|<2>| ASSERT: pkcs11.c:453
Resolving ''...
Connecting to ''...
|<2>| ASSERT: gnutls_constate.c:716
|<2>| ASSERT: gnutls_buffers.c:958
|<2>| ASSERT: gnutls_buffers.c:473
|<2>| ASSERT: gnutls_buffers.c:473
|<2>| ASSERT: gnutls_record.c:954
|<2>| ASSERT: gnutls_buffers.c:1171
|<2>| ASSERT: gnutls_handshake.c:1272
|<2>| ASSERT: gnutls_handshake.c:2483
*** Fatal error: The TLS connection was non-properly terminated.
*** Handshake has failed
GnuTLS error: The TLS connection was non-properly terminated.

I tried openssl, the connection is ok with this command:

$ openssl s_client -connect

Thank you for your help.

Sebastien Helleu <flashcode>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by nmav (Posted a comment)
  • -email is unavailable- added by flashcode (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-24 nmav StatusNone Done
        Assigned toNone nmav
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.9