OpenShift S2I Build Fails with "Peer's certificate issuer has been marked as not trusted by the user"
Issue
- Cannot pull source from external Git repository
error: build error: fatal: unable to access 'https://github.com/openshift/ruby-ex.git/': Peer's certificate issuer has been marked as not trusted by the user.
- Our OpenShift install is behind a proxy which re-issues a new cert for external sites.
- The S2I build image does not have the proxy CA in place, does not trust the CA, can't download source code from github.com or internal gitlab repo
- Cloning or pulling source from a custom git repository and getting issuer is not recognized messages
Cloning "https://example.com/test/project.git " ...
error: fatal: unable to access 'https://example.com/test/project.git/': Peer's Certificate issuer is not recognized.
Environment
- Red Hat OpenShift Container Platform
- 3.5+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.