Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git - "SSL certificate issue: self signed certificate in certificate chain"

I just started getting this error when trying to push my changes. I don't know what changed on my system and there should not be any self-signed certs in this connection.

Git has been uninstalled and re-installed. Git appears to be using the proper bundle: http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt

Disabling cert checking is not an option.

How can I troubleshoot this issue?

The goal is to push my code to GitHub, but how did a self-signed cert get into this connection and how do I get it out?

like image 900
SCote Avatar asked Oct 24 '25 04:10

SCote


1 Answers

I discovered that Kaspersky antivirus started using self-signed certificates in their "Web Anti-Virus" feature which caused Git to complain.

In order to work with the remote in any way over HTTP (push, fetch, pull, etc.) Kaspersky Web Anti-Virus needs to be disabled or that particular Git repo added to the exclusions list.

like image 56
SCote Avatar answered Oct 26 '25 18:10

SCote