error: RPC failed; curl 56 OpenSSL SSL_read: error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac, errno 0

moro clash picture moro clash · Apr 8, 2018 · Viewed 13.7k times · Source

I use Arch Linux and this problem appears when trying to push on my rip

error: RPC failed; curl 56 OpenSSL SSL_read: error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac, errno 0

this issue when writing

git push origin master

Counting objects: 65, done. Delta compression using up to 4 threads. Compressing objects: 100% (56/56), done. Writing objects: 100% (65/65), 76.27 KiB | 1.00 MiB/s, done. Total 65 (delta 32), reused 0 (delta 0) error: RPC failed; curl 56 OpenSSL SSL_read: error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac, errno 0 fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly Everything up-to-date

i'm change my buffer size and upgrade git, curl, openssl but doesn't work .

so any help pleas.

Answer

Daniel picture Daniel · Apr 11, 2018

So I ran into the same issue and contacted github.com/contact. In the end, they gave the hint that solved it for me. I needed to change the git config to use TLSv1.2 instead of SSLv3:

git config http.sslVersion tlsv1.2

As GitHub support told me, in the beginning, the issue could be related to a change which they deployed a few months ago, that disables support for deprecated legacy TLS and SSH algorithms, including those that were used in older versions of some Git clients. You can find more information and advice here:

https://githubengineering.com/crypto-removal-notice/