SSL certificate issue while creating git clone with TortoiseGit

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

    Configure git to use the right root certificate. Get the root CA certificate of the server and add it to the git config. Run this in command prompt (don't forget to cd into your git repo)

    git config http.sslCAinfo ~/certs/cacert.pem
    

    You can choose to ignore the server certificate (at your own risk!).

    git config http.sslVerify false
    

    Security Warning: This is susceptible to Man in the Middle attacks. Be sure that this security concern is not an issue for you before you disable SSL certification verification.

    0 讨论(0)
提交回复
热议问题