OpenShift API reports authentication issues (403) when providing correct certificates.
Issue
- When trying to use
curl
to interact with the OpenShift API, one can't get data from authenticated endpoints, becausecurl
shows access is "forbidden".
Example:
$ curl -E /etc/origin/master/admin.crt --key /etc/origin/master/admin.key https://<MASTER_API>/api/v1<API>
- Note: The --cacert option, from
/etc/origin/master/ca-bundle.crt
may also be needed/supplied if a custom/corporate certificate was issued for the cluster.
Environment
- Red Hat OpenShift Container Platform
- 3
- Red Hat Enterprise Linux (curl)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.