Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to access gitlab: SSL certificate has expired

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 a new certificate and add it to VS? I don't have any experience with GitLab.

like image 212
Dima Kozyr Avatar asked Feb 02 '20 09:02

Dima Kozyr


People also ask

How do you fix SSL certificate problem certificate has expired?

The only solution to this problem is to get your host to update the root certificate on your server. So, you need to contact your server host and ask them to insert a new cacert.

What is SSL certificate problem in git?

When pushing, pulling, or cloning, Git cannot verify your SSL certification, which leads to the error. A valid HTTPS handshake requires both the client and the server to create a secure connection, allowing for safe communication between your local machine and where the source code is hosted.

How do I get my GitLab certificate?

New Async Technical Certification Option We're now bundling together the three main components you need to earn the GitLab Certified Associate certification asynchronously: A self-study eLearning preparation course, a certification knowledge exam, and a graded hands-on exam you complete in a GitLab sandbox environment.

Where is git SSL certificate?

For instance, the trusted certificate store directory for Git Bash is C:\Program Files\Git\mingw64\ssl\certs.


1 Answers

There's a quick fix you can run in the command line:

git config --global http.sslVerify "false"

The solution was found in the following article.

like image 50
Xab Ion Avatar answered Sep 20 '22 14:09

Xab Ion