bug in 3.0.18: gnutls-cli fails to transfer data to gnutls-serv --echo

Nikos Mavrogiannopoulos nmav at gnutls.org
Thu Apr 19 18:02:22 CEST 2012

On 04/18/2012 11:06 PM, Alexandre Bique wrote:

> - start a gnutls echo server: gnutls-serv --x509keyfile=key.pem
> --x509certfile=cert.pem -p 4242 --disable-client-cert --nodb --generate
> --echo
> - start a client, and copy a big file: cat /usr/include/*.h >test-file;
> gnutls-cli --insecure -p 4242 <test-file
> Then it doesn't work :^)
> You can also test with an openssl client (it will fail as well): openssl
> s_client -connect <test-file

Ok it seems it is an issue in s_client of openssl. After it transmits
some number of data it requests a rehandshake (renegotiation). It does
that by sending a client hello. If the next message it receives is
application data then it does issue the error you see. So it is no
error to worry about, just a bug in s_client.


More information about the Gnutls-devel mailing list