How to use kubectl and a custom X509 certificate to log into a remote OpenShift cluster

Solution Verified - Updated -

Issue

  • Log into an OpenShift cluster from clients that can only use kubectl.
  • Generate a kubeconfig file for remote OpenShift cluster authentication through a custom X509 certificate.
  • Authentication should use a certificate, not a token.

Environment

  • Red Hat Openshift Container Platform (OCP) 3.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