[Work Notes] Git Clone Error: "Problem with the SSL CA cert (path? access rights?)"

Our company’s git server does not support SSL verify but does support username/password authentication. Git enables SSL verification by default when accessing HTTPS URLs.

You may encounter the following error:

error: Problem with the SSL CA cert (path? access rights?) while accessing
https://tw.ubnt.com/git/example.git/info/refs
fatal: HTTP request failed

To fix this, disable SSL verification globally:

git config --global http.sslVerify false

Then clone again:

$ git clone https://tw.ubnt.com/git/example.git
Cloning into 'test'...
Username for 'https://tw.ubnt.com': name
Password for 'https://[email protected]': password
remote: Counting objects: 1054, done.
remote: Compressing objects: 100% (674/674), done.
remote: Total 1054 (delta 390), reused 747 (delta 290)
Receiving objects: 100% (1054/1054), 14.45 MiB | 377 KiB/s, done.
Resolving deltas: 100% (390/390), done.

Done!


Comments & Feedback