gnutls_handshake () falhou: erro na função de tração

My server is behind a proxy and I got the same error, I solved this modifying ~/.gitconfig adding the proxy conf:

[http]
    proxy = http://xxx.xxx.xxx.xxx:pppp
Santino