Back

Explore Courses Blog Tutorials Interview Questions
+2 votes
3 views
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...

Password:

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 1.7.2.3. 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

29.3k questions

30.6k answers

501 comments

104k users

Browse Categories

...