Fatal: unable to access: SSL certificate problem: certificate has expired

Dung Do Tien Jun 04 2022 521

Hi guys, I have a .net project and used GitLab to help manage source code. Today I tried to fetch all branches from Gitlab by using the command git fetch. But I got an error about SSL : Fatal: unable to access: SSL certificate problem: certificate has expired.

 Fatal: unable to access 'https://gitlab.com/dungdo909118/testpullpush.git': SSL certificate problem: certificate has expired

I tried to run git pull but got the same error.

I don't think the GitLab link above has a problem with SSL  because I accessed that link HTTPS protocol was still good.

Please help me if you know any solution.

Thank you in advance.

Have 1 answer(s) found.
  • A

    Aashish Thapa Magar Jun 04 2022

    I got the same issue and I found a simple solution, you can Ignore checking SSL by running the command below:

     git config --global http.sslVerify false

    Note: this config will apply to the global scope. (apply to all source git).

    And then you can run git fetch command as normally. 

Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close