close

[Solved] fatal: unable to access ‘https://git.company.tld/project.git/’: SSL certificate problem: certificate has expired

Hello Guys, How are you all? Hope You all Are Fine. Today I am just trying git pull command and I am facing following error fatal: unable to access ‘https://git.company.tld/project.git/’: SSL certificate problem: certificate has expired in git. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How fatal: unable to access ‘https://git.company.tld/project.git/’: SSL certificate problem: certificate has expired Error Occurs ?

Today I am just trying git pull command and I am facing following error.

fatal: unable to access 'https://git.company.tld/project.git/': SSL certificate problem: certificate has expired

How To Solve fatal: unable to access ‘https://git.company.tld/project.git/’: SSL certificate problem: certificate has expired Error ?

  1. How To Solve fatal: unable to access 'https://git.company.tld/project.git/': SSL certificate problem: certificate has expired Error ?

    To Solve fatal: unable to access 'https://git.company.tld/project.git/': SSL certificate problem: certificate has expired Error If you are running on older version of git then Older versions of git would not accept the expired root certificate from Let's Encrypt. So that You have to update your git to latest version to solve this error. Updating Git to a newer version installs a new CA chain certificate which is used by Git. That solves the issue.

  2. fatal: unable to access 'https://git.company.tld/project.git/': SSL certificate problem: certificate has expired

    To Solve fatal: unable to access 'https://git.company.tld/project.git/': SSL certificate problem: certificate has expired Error If you are running on older version of git then Older versions of git would not accept the expired root certificate from Let's Encrypt. So that You have to update your git to latest version to solve this error. Updating Git to a newer version installs a new CA chain certificate which is used by Git. That solves the issue.

Solution 1: set sslverify to false

In my case I just run this command and my error was solved.

git config --global http.sslverify "false"

While SSL turned off, your secrets may not be safe. So be sure you’re not violating any security policies of your organizations when you do this. I wouldn’t worry too much about SSL But if you looking for security then please don’t try this solution

Solution 2: Update git to latest version

If you are running on older version of git then Older versions of git would not accept the expired root certificate from Let’s Encrypt. So that You have to update your git to latest version to solve this error.

Updating Git to a newer version installs a new CA chain certificate which is used by Git. That solves the issue.

Solution 3: Follow these step

  1. First of all Open Webserver Protection
  2. Then Select Certificate Management
  3. Now click on Certificate Authority
  4. Then Just Search for old entries that are not longer valid And Delete It
  5. After that you can renew the certificates from let’s encrypt [ If needed ]

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment