SSL certificate issue while creating git clone with TortoiseGit

后端 未结 7 1366
心在旅途
心在旅途 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 04:54

    All the top answers are really dangerous! Do not disable SSL verification globally!

    Instead, use the excellent answer in another thread and very selectively allow a self-signed certificate for a specific site.

    Edit the global .gitconfig file to include

    [http "https://example.com"]
        sslCAInfo = C:\\Users\\\\Documents\\ssl\\example.com.crt
    

    The CRT file itself can be obtained in multiple ways. You can just save it using Firefox, store it somewhere safe and point your config to it.

提交回复
热议问题