OpenShift API reports authentication issues (403) when providing correct certificates.

Solution In Progress - Updated -

Issue

  • When trying to use 'curl' to interact with the OpenShift API, I can't get data from authenticated endpoints, because curl tells me 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/corprate certificate was issued for the cluster.

Environment

  • Red Hat OpenShift Container Platform 3.x
  • Red Hat Enterprise Linux (curl)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.