Search code examples
gitvisual-studiosslazure-devopsclone

While cloning a VSTS repo on local, facing SSL certificate issue


While cloning a repo from VSTS i am facing the below error in Visual Studio. "SSL certificate problem" How can i ignore SSL certificate or add that certificate in Visual Studio.

Error


Solution

  • The simple way to ignore certificate validation is calling git config --global http.sslVerify false command.

    To trust a certificate, you can try these steps and check the result:

    1. Export the certificate through browser (e.g. chrome): Click lock icon in address bar > Certificate > Certification Path > Select top-most certificate in the chain > View Certificate > Copy to file (Choose Base-64 encoded X.509).
    2. Copy content to ca-bundle.crt file (check http.sslcainfo value by calling git config –l command)

    More information: Adding a corporate (or self-signed) certificate authority to git.exe’s store