Score:0

gnutls_handshake() failed: An unexpected TLS packet was received

dk flag

I am facing this issue when triggering curl to a target application hosted in ubuntu 20.

curl: (35) gnutls_handshake() failed: An unexpected TLS packet was received,Below is the curl version in source.

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

Interstingly when i trigger curl from another machine where curl version is different,its working

Working curl version as below.

curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3

I can see that the difference that in working curl version there is openssl instead of gnutls as source package.

Any reason why gnutls is having handshake issue with ubuntu 20(same curl(7.47) is working against application in ubuntu 16)?

Sarath S avatar
dk flag
No..Have already gone through that.This doesnt seems to be a certificate issue.
in flag
Most probably the outdated versions on the Ubuntu 16 (which has been end of life for nearly a year) don't support the encryption on the target server. Update your system to a supported version.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.