Share via


VS2017 RC: Git plugin does not work with self-signed SSL certificate.

Question

Monday, February 20, 2017 9:13 AM

I have a remote Git repository with HTTPS access using self-signed SSL certificate. VS2015 works fine with it over HTTPS, but VS2017 RC does not, please see the screenshot:

SSL certificate is installed on my Window 10 system. The repository URL is https://git.developernote.com/examples.git.

All replies (6)

Thursday, February 23, 2017 6:43 AM ✅Answered

Hi ShamanSoft,

Yes, I could repro your issue in my side. And I have found there are many people encountered this fatal error. So I help you submitted a feedback to the VS connect with the following link:

https://developercommunity.visualstudio.com/content/problem/22211/git-failed-with-a-fatal-error-unable-to-access-htt.html

You could vote and comment it.

And you could mark this reply that help others who encountered the same issue as yours to vote and comment it.

Sincerely,

Oscar

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Tuesday, February 21, 2017 7:18 AM

Just for clarification are you connecting VSTS in VS2017RC?


Tuesday, February 21, 2017 10:27 AM

not Visual Studio Team Services, but my own Git repository hosted on a Linux server.


Wednesday, February 22, 2017 7:30 AM

Hi ShamanSoft,

Based on the following link, we could install the latest version of git over the Visual Studio copy (VS2017 does not use the git in your PATH).

Download the 32-bit version of git here:

https://github.com/git-for-windows/git/releases/download/v2.11.1.windows.1/PortableGit-2.11.1-32-bit.7z.exe

Run the file you downloaded. You’ll see a popup window that asks where you’d like to unpack git to, enter this folder:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git

https://developercommunity.visualstudio.com/content/problem/19752/git-cant-clone-remote-repository.html

Sincerely,

Oscar

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Wednesday, February 22, 2017 9:18 AM

Hello, Oscar!

you can easily try to clone my repository in VS2017 with this link https://git.developernote.com/examples.git and see if it reports the same error about the certificate. This repository is private and has login and password that I cannot share with you, but I guess that VS2017 is unable to send HTTPS requests at all, so login and password do not matter.

The only problem is that you should install my certificate first (that can be theoretically unsafe for you), so probably it is not quite good experiment. But just in case, you can get the certificate from https://gitweb.developernote.com/.


Wednesday, March 15, 2017 6:11 PM

Please read this article (https://writeabout.net/2017/02/03/git-for-windows-with-tfs-and-ssl-behind-a-proxy/) it should provide a solution for you.

- JJ