openshift-cli skip the old request to bypass the certificate #3722
Replies: 5 comments 4 replies
-
|
Hi @RH-csaggin, BZ 2097830: Regression: OC cli 4.11 (macOS) is still facing issues trusting the ingress TLS certificate, even the options --insecure-skip-tls-verify or --certificate-authority the CLI is not working. (OCPBUGS-1667) Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
|
Just FYI, running, |
Beta Was this translation helpful? Give feedback.
-
|
@ryannix123 which version of the CLI are you using? Running on macOS 12.6.1 |
Beta Was this translation helpful? Give feedback.
-
|
I was facing similar issue: $ oc login -u kubeadmin https://api.crc.testing:6443
error: x509: “kube-apiserver-lb-signer” certificate is not trusted
$ oc login -u developer https://api.crc.testing:6443
error: x509: “kube-apiserver-lb-signer” certificate is not trustedMy MacBook Pro is: $ uname -a
Darwin Cesars-MacBook-Pro.local 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000 arm64I was able to login like this: $ oc login --insecure-skip-tls-verify=true -u kubeadmin -p CyUrJ-ggmnD-w8rUU-BHJoj https://api.crc.testing:6443
WARNING: Using insecure TLS client config. Setting this option is not supported!
Login successful.
You have access to 65 projects, the list has been suppressed. You can list all projects with 'oc projects'
Using project "default". |
Beta Was this translation helpful? Give feedback.
-
|
The issue has been fixed on openshift cli 4.14 the problem came from the error type changes in Go as fixed in openshift/oc#1406 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openshift-cli.rb
Since I updated to the lasted version (from
openshift-clients-4.6.0-202006250705.p0) when I attempt to login into a cluster I do not have the question anymore to trust or not the clusters I.E.:but it goes directly on:
error: x509: “kube-apiserver-lb-signer” certificate is not trustedOnly adding the flag
--insecure-skip-tls-verify=trueallow me to connect which is more painful than just replying to the interacting question.I can confirm that this is a bug present on
openshift-clients-4.12.0-202208031327as when I downgrade the package version to the previous 4.6.0 it when back to work as expected.Beta Was this translation helpful? Give feedback.
All reactions