Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

curl: (35) gnutls_handshake() failed: Public key signature verification has failed

I have an issue, when Im doing curl request or git push, that show me

curl: (35) gnutls_handshake() failed: Public key signature verification has failed.

curl --version

curl 7.50.1 (x86_64-pc-linux-gnu) libcurl/7.50.1 GnuTLS/3.5.3 zlib/1.2.8 libidn/1.33 libssh2/1.7.0 nghttp2/1.14.0 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets

I have already done: update and downgrade curl to version 7.38 but this do not help me. Sorry for my English, tnx.

like image 238
mov eax Avatar asked Nov 28 '22 06:11

mov eax


2 Answers

dpkg -l | grep libgnutls

ii  libgnutls-deb0-28:amd64              3.3.8-6+deb8u3              amd64        GNU TLS library - main runtime library
ii  libgnutls-openssl27:amd64            3.3.8-6+deb8u3              amd64        GNU TLS library - OpenSSL wrapper
ii  libgnutls30:amd64                    3.5.7-2                     amd64        GNU TLS library - main runtime library

sudo apt-get remove --purge libgnutls-deb0-28

... worked for me.

like image 102
Gabor I. Avatar answered Dec 06 '22 11:12

Gabor I.


After downgrading to curl 7.38.0, I also had to downgrade:

$ sudo apt-mark hold libcurl3-gnutls
$ sudo apt-get install libcurl3-gnutls=7.38.0-4+deb8u4

Then the error went away. I'm on debian jessie.

like image 45
Donn Lee Avatar answered Dec 06 '22 11:12

Donn Lee