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

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

我使用 Arch Linux 并且在尝试推动我的 rip 时出现此问题

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

写的时候出现这个问题

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

我正在更改 缓冲区大小 并升级 gitcurl, openssl 但不起作用 .

所以任何帮助请求。

所以我 运行 遇到了同样的问题并联系了 github.com/contact。最后,他们给出了为我解决问题的提示。我需要更改 git 配置以使用 TLSv1.2 而不是 SSLv3:

git config http.sslVersion tlsv1.2

正如 GitHub 支持人员告诉我的那样,一开始,这个问题可能与他们几个月前部署的一项更改有关,该更改禁用了对已弃用的旧版 TLS 和 SSH 算法的支持,包括那些在某些 Git 客户端的旧版本中使用。您可以在此处找到更多信息和建议:

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

只需切换到移动热点并推送即可。