Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to disable ssl validation in Visual studio Team Explorer window?

I used Team Explorer to connect to Gitlab server which is using self-signed certificate. But Team Explorer won't allow me to do anything even though I have set http.sslverify to false.

In this post he said that "If an HTTPS URI is used for a remote, the Windows certificate store is used to validate the server’s SSL certificate."

Is there the way to disable this ssl validation?

The certificate is trusted but it's still invalid because of url mismatch and I can't do anything with theirs certificate.

error

like image 864
Persk Avatar asked Oct 19 '22 16:10

Persk


1 Answers

Since SSL verification is a "git" thing, and Visual Studio Git extension is just a wrapper over it, you can set the git option to ignore checking ssl. Just open a command prompt and do the following:

cd c:\path\to\project\folder
git config http.sslVerify false

Then go back to visual studio and everything goes fine.

If you want this to work for all of your git projects, add "--global" option to the git command.

like image 155
Majid Pourkashani Avatar answered Nov 02 '22 05:11

Majid Pourkashani