ERROR: x509: certificate signed by unknown authority, when you docker login on OCP4.

Solution In Progress - Updated -

Issue

  • Even though you has deployed CA certificate of OCP4 to "/etc/docker/certs.d/image-registry-openshift-image-registry.apps.ocp4.example.com/ca.crt", the following error message is shown.
# docker login -u $USERNAME -p $TOKEN image-registry-openshift-image-registry.apps.ocp4.example.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get https://image-registry-openshift-image-registry.apps.ocp4.example.com/v2/: x509: certificate signed by unknown authority

Environment

  • OpenShift Container Platform
    • 4.x

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