|Thanks, this is very useful. I'm almost there...|
Usage for the oc login command says:
oc login [URL] [options]
# Log in interactively
$ oc login
# Log in to the given server with the given certificate authority file
$ oc login localhost:8443 --certificate-authority=/path/to/cert.crt
# Log in to the given server with the given credentials (will not prompt interactively)
$ oc login localhost:8443 --username=myuser --password=mypass
-p, --password='': Password, will prompt if not provided
-u, --username='': Username, will prompt if not provided
--certificate-authority='': Path to a cert. file for the certificate authority.
So I tried:
[root openshift-test admin]# ./oc login localhost:8443 --certificate-authority=./openshift.local.config/master/admin.crt
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y
Authentication required for https://localhost:8443 (openshift)
(I tried various other permutations as well...)
-> this doesn't seem to work as the login utility will always ask me for a username and password, ignoring the certificate information that I'm passing on the command line