Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+2 votes
in DevOps and Agile by (19.7k points)

I'm trying to clone my GitHub project using the https-URL, but it fails with an error:

$ git clone https://[email protected]/foo/foo-private.git

Cloning into foo-private...


error: error setting certificate verify locations:

  CAfile: /bin/curl-ca-bundle.crt

  CApath: none

 while accessing https://[email protected]/foo/foo-private.git/info/refs

fatal: HTTP request failed

What am I doing wrong?

1 Answer

+2 votes
by (62.9k points)

I have seen this on Windows, with msysgit You have to fix the path to bin/curl-ca-bundle.crt. You have to mention the absolute path, using back-slashes like this:

git config --system http.sslcainfo "C:\Program Files (x86)\git\bin\curl-ca-bundle.crt"

or — not really recommended — you may choose to switch off SSL checks completely by executing the following command:

git config --system http.sslverify false

For both the cases, this will result in changes to [git-install-dir]/etc/gitconfig file, which may be edited directly, too.

Browse Categories