Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define the certificate-authority flag #120

Closed
jliburd-nsi opened this issue Nov 15, 2019 · 4 comments · Fixed by #121
Closed

Define the certificate-authority flag #120

jliburd-nsi opened this issue Nov 15, 2019 · 4 comments · Fixed by #121

Comments

@jliburd-nsi
Copy link

Is there a way to define the --certificate-authority flag when defining the OpenShift service connection so that it is used when the "oc login" command is used?

I am getting an error right now with the "Install and Setup" task. The error is:

"error: The server uses a certificate signed by unknown authority. You may need to use the --certificate-authority flag to provide the path to a certificate file for the certificate authority, or --insecure-skip-tls-verify to bypass the certificate check and use insecure connections."

@lstocchi
Copy link
Contributor

Hi @jliburd-nsi, no there is no way to add --certificate-authority atm. You can try using the --insecure-skip-tls-verify flag. Just select the "Accept untrusted SSL certificate" option in the openshift service connection. Let me know if it works.

image

@jliburd-nsi
Copy link
Author

Hi,

Thanks for the fast response.

Yes it works when I check the "Accept untrusted SSL certificates" box but I didn't want to check that option.

I tested the login from the server itself with the --certificate-authority flag and it worked so I was just trying to find a way to set that option through the plugin.

@lstocchi
Copy link
Contributor

I'll work on this new feature and i'll let you know when it's available. Thanks for your feedback :)

lstocchi added a commit to lstocchi/openshift-vsts that referenced this issue Nov 19, 2019
lstocchi added a commit to lstocchi/openshift-vsts that referenced this issue Nov 25, 2019
lstocchi added a commit to lstocchi/openshift-vsts that referenced this issue Nov 25, 2019
lstocchi added a commit to lstocchi/openshift-vsts that referenced this issue Dec 2, 2019
lstocchi added a commit to lstocchi/openshift-vsts that referenced this issue Dec 2, 2019
lstocchi added a commit to lstocchi/openshift-vsts that referenced this issue Dec 2, 2019
lstocchi added a commit to lstocchi/openshift-vsts that referenced this issue Dec 2, 2019
lstocchi added a commit to lstocchi/openshift-vsts that referenced this issue Dec 2, 2019
lstocchi added a commit that referenced this issue Dec 2, 2019
…enshift (#121)

* added new field for certificate authority file

* added support for using certificate file (#120)

* fixed prettier errors

* changed visibility certificate setting (#120)

* exported const variable to constant file (#120)

* added tests for oc-auth (#120)

* fixed prettier warnings (#120)
@lstocchi
Copy link
Contributor

lstocchi commented Dec 6, 2019

New version released. Now you can set up the certificate flag when creating/editing openshift service connection. Feel free to open another github issue if you face any problem. Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants