Fatal: unable to access: SSL certificate problem: certificate has expired
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.
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 fetchcommand as normally.