Warm tip: This article is reproduced from stackoverflow.com, please click
c# gitlab ssl visual-studio

Unable to access gitlab: SSL certificate has expired

发布于 2020-04-11 22:17:37

In Visual Studio I'm trying to pull some changes from the repository on gitlab, but it gives me an error: Git failed with a fatal error. unable to access 'https://gitlab...git/': SSL certificate problem: certificate has expired

How can I generate the new certificate and add it to VS? I don't have any experience with gitlab.

Questioner
Dima Kozyr
Viewed
72
VonC 2020-02-02 18:35

Visual Studio should be using Git for Windows.

If you can export the certificate chain of your private GitLab server, you can add it to the ca-bundle.crt file in your git folder, in C:\path\to\Git\\usr\ssl\certs.