SSL certificate issue while creating git clone with TortoiseGit

后端 未结 7 1438
心在旅途
心在旅途 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:59

    The correct solution is simple; Tell git to use the Windows certificate store. This is supported by git version >=2.14 (not sure what Tortoise version that relates to)

    Sadly I don't see a way to configure this in Tortoise GUI settings.

    Procedure:
    1:
    Find the folder where git (for Tortoise git is installed) TortoiseGit -> Settings -> General Git.exe path = (e.g.) C:\Program Files\git\bin

    2:
    In explorer browse this folder in Explorer Shift right click "Command Prompt here"

    3:
    Enter the following git configuration command

    git config --global http.sslBackend schannel
    

    Install your self signed certificate chains in the Windows Certificate Store as normal.

提交回复
热议问题