Unable to pull source code from private git repository due to untrusted SSL certificate.
Issue
- A local private git repository is installed internally.
- The requirement is to pull source code from this repository using HTTPS.
-
A certificate that is signed by a local CA is used by this local repository. While trying to pull the code, the following error is shown during build process:
Adding cluster TLS certificate authority to trust store Cloning "https://gitlab.example.com/23824/examplecode.git" ... error: fatal: unable to access 'https://gitlab.example.com/...certificate problem: unable to get local issuer certificate
Environment
- OpenShift Container Platform 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.