Search code examples
openshiftopenshift-originopenshift-client-tools

Openshift - 'oc' commands fail with "Unable to connect to the server: x509: certificate signed by unknown authority"


After installing openshift locally, I can start minishift. on https://192.168.x.y:8443

When starting an 'oc' command, like 'oc project', then I get this error:

Unable to connect to the server: x509: certificate signed by unknown authority

When I start an 'oc' command without starting minishift, then I get this error:

Unable to connect to the server: dial tcp 192.168.x.y:8443: connectex: (Translated) Trying to connect failed because the connected party has not answered correctly after a certain time, or the established connection failed because the connected host did not answer.

Before: I could work with oc with Openshift online.


Solution

  • Solved, I guess a missing SSH issue.

    After starting minimshift, perform a 'oc login' results in this meesage:

    Authentication required for https://192.168.99.100:8443 (openshift)

    So after providing the username and password, everything works find!

    And of course, you can use the SSH tokens. You can find info by opening the Online Console > Question mark pulldown menu > command line.