'Jenkins Git SSL certificate error
I'm having a hard time setting up my git repository to be used in Jenkins.
I'm getting the following error:
SSL certificate problem: unable to get local issuer certificate
We use GitLab in our environment.
What I've tried:
- Turning sslVerify off at System level (no error is shown, but then I receive a timeout after 10 minutes (it doesn't clone the repo))
- Downloading the gitlabs webpage certificate through Internet Explorer and placing it in the gitconfig like "sslCAinfo = C:/Program Files/Git/mingw64/ssl/certs/certificatefile.pem" (doesn't change anything)
I don't find any pages which can be of any help anymore.
Solution 1:[1]
Jenkins doesn't support GIT system configuration and GIT Global configuration. In my case, I added curl-ca-bundle.crt in GIT/bin directory.
I get it from Windows GIT. git --version git version 1.7.11.msysgit.0
and run below command to set https verification false.
git config --system http.sslVerify false
git config --global http.sslVerify false
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jenish Patel |
