Tuesday, February 4, 2020

SSL certificate problem: unable to get local issuer certificate

Jenkins tries to check out from bitbucket/git, but get below error:
SSL certificate problem: unable to get local issuer certificate

Cause:
Bitbucket/Git is using selfsigned certificate.

Solution:

On jenkins server, log in as jenkins, and run below command:

$ git config --global http.sslVerify false
$ cat ~/.gitconfig
[http]
        sslVerify = false

Restart jenkins
# systectl restart jenkins

No comments:

Post a Comment