Unable to login to a cluster using oc client 4.11 (and above) on macOS

Solution Verified - Updated -

Issue

  • Failed to login into any clusters with self-signed ingress certificates.
  • options --insecure-skip-tls-verify * and *--certificate-authority are not working
  • The error message can either be:
    • error: x509: "kube-apiserver-service-network-signer" certificate is not trusted
    • error: x509: “ingress-operator@1234567890” certificate is not trusted

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • CLI 4.11
    • CLI 4.12
  • MacOS

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