GIT SSL Issue
Hi
We are using Teamcity 2021.1.3 (build 92914) running on Windows 10. It has been working well for an year, but recently it started having some ssl certificate issues with GIT and not building at all. The git repository is on the same machine. I have tried removing the certificate and adding it again, clonining locally only with GIt works fine, but Teamcity comes with the following message:
Failed to perform checkout on agent: '"C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\builds\TeamCity\buildAgent\temp\buildTmp\pass4671881862663089196.bat -c credential.helper= fetch --progress --recurse-submodules=no origin +refs/heads/master:refs/heads/master' command failed.
exit code: 128
stderr: fatal: unable to access 'https://GIT_URL/OURProj.git/': SSL certificate problem: unable to get local issuer certificate
It comes back with the same issue even if I disable the certificate check in git.
I have reinstalled Teamcity and all sorts of tests but I am running out of ideas.
Please sign in to leave a comment.
Hi!
First of all, please note that TeamCity version 2021.1 has reached the End of support stage. I strongly recommend upgrading.
Second, could you please check what version of Git is installed on the agent?
Do you have any certificates configured in the Root project's "SSL / HTTPS Certificates" section?
As for disabling the certificate check in git, how exactly did you do that? Did you set it via the
--globalor the--systemoption? The global option only sets it for the current user. TeamCity agent might be started by a different user.Cheers,
Anatoly