error: x509 certificate signed by unknown authority when logging in OpenShift 4 using the installation kubeconfig file

Solution Verified - Updated -

Issue

  • When logging as a user using the kubeconfig from the installation (auth/kubeconfig) an error is shown: error: x509 certificate signed by unknown authority error..
  • Below warning is seen while trying to logging in to the cluster.
    WARNING: Using insecure TLS client config. Setting this option is not supported!
  • Using a separate kubeconfig allows logging but then the new kubeconfig doesnt contain the information for passwordless login as system:admin user.

Environment

  • Red Hat OpenShift Container Platform
    • 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