SSL certificate issue while creating git clone with TortoiseGit

后端 未结 7 1363
心在旅途
心在旅途 2021-01-31 04:33

I want to clone the git repository with the help of TortoiseGit, but I am getting error :

error: SSL certificate problem, verify that the CA cert is OK. Details: error:1

7条回答
  •  执笔经年
    2021-01-31 05:04

    Even though disabling ssl verifyication is considered dangerous for many reasons, sometimes this is feasible. Others have pointed out to use at least a "local" disabling, but not how to do this. For the record, here is how you can define in the global .gitconfig file (in Windows located under c:\Users\username) for a single repository to use openssl and disable the check. Just add the following (adjusted) lines:

    [http "https://your.repo.com"]
     sslBackend = openssl
     sslVerify = false
    

    For me this worked perfect. As noted and linked in the answer from FRob, here is a more nuanced option that uses the pem certificate that you can often download yourself, e.g. when "clicking" on the lock symbol in your browser before the url and searching for "additional information" (firefox, others should be similar).

提交回复
热议问题