oc login https://api.xx.example.com:6443 not working.
Issue
- "oc login https://api.xx.example.com:6443" giving x509 error but login via console and kubeconfig is working.
- Error message
You must obtain an API token by visiting https://oauth-openshift.apps.xx.example.com/oauth/token/request
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.7 and later
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.