Symptoms
-
After installing sidecar injector I am unable to access my Git repository using the
HTTPS
protocol. -
I am seeing the following error when accessing my Git repository:
-
stderr: fatal: unable to access 'https://example.git.com/repository.git': SSL certificate problem: self signed certificate in certificate chain
-
Environments
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Managed controller
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Operations Center
-
CloudBees CI (CloudBees Core) on traditional platforms - Client controller
-
CloudBees CI (CloudBees Core) on traditional platforms - Operations Center
Troubleshooting
-
Access the CLI of your Jenkins controller.
-
Execute
git config --global http.sslVerify false
to temporarily disable SSL verification. -
Execute
git clone $GIT_REPO
replacing$GIT_REPO
with your actual Git repo URL. -
At this point, you should have successfully cloned your Git repository.
-
Execute
git config --global http.sslVerify true
to re-enable SSL verification.
Resolution
If you were able to successfully clone your repository using the steps above, you will need to re-check your SSL certificates for your sidecar injector as they may have been installed incorrectly or you may be missing a part of the certificate chain.
If you were unable to clone your repository using the troubleshooting steps, or you are facing issues with verifying that your sidecar injector configuration is correct, please contact CloudBees Support.