How to fix the x509: certificate signed by unknown authority on login OpenShift internal registry

Solution Verified - Updated -

Issue

  • Login to the OpenShift internal registry by default route returns "x509: certificate signed by unknown authority" issue:
# podman login image-registry-openshift-image-registry.apps.example.com
Username: admin
Password: 
Error: error authenticating creds for "image-registry-openshift-image-registry.apps.example.com": error pinging docker registry image-registry-openshift-image-registry.apps.example.com: Get https://image-registry-openshift-image-registry.apps.example.com/v2/: x509: certificate signed by unknown authority

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

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