OpenShift S2I Build Fails with "Peer's certificate issuer has been marked as not trusted by the user"

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content