git clone https/ssl error [duplicate] git clone https/ssl error [duplicate] git git

git clone https/ssl error [duplicate]


If you are getting an error while doing a git clone, then above needs to be changed to:

git config --global http.sslVerify false


You might have to disable the certificate verification in your case:

cd /path/to/repogit config http.sslVerify false

(as in "Git: ignore a self signed certificate")

The other option, similar to "Unable to clone Git repository due to self signed certificate" would be to import that certificate into git.

That is: copied it at the end of the file /path/to/git/bin/curl-ca-bundle.crt.

I would not advise git config --global http.sslVerify false, as that would disable certificate verification for all local repositories.


Check your .gitconfig file.

If you've found the following line, Remove it!

[http]sslCAinfo = /bin/curl-ca-bundle.crt

It worked for me.