Build failed with error `rpc error: code = 2 desc = Get https://docker-registry.default.svc:5000/v2/:x509: certificate has expired or not yet valid`

Solution Verified - Updated -

Issue

  • Build failed to push and pull the images from the internal registry with an error rpc error: code = 2 desc = Get https://docker-registry.default.svc:5000/v2/:x509: certificate has expired or not yet valid.

Environment

  • OpenShift Container Platform

    • 3.6

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