openshift-instruqt / instruqt

Repository for the Red Hat and OpenShift Developers Learning Portal, powered by Instruqt.
https://developers.redhat.com/learn/openshift
32 stars 36 forks source link

OpenShift-4-11 certificate expiration - oc login failures #325

Open ryanj opened 1 month ago

ryanj commented 1 month ago

In which track did this bug occur?

All openshift-4-11 tracks

what is the url for the track? https://play.instruqt.com/manage/openshift/tracks/getting-started-with-openshift

At what step of the track did this happen? oc login -u developer -p developer

Describe the bug login fails, even with --insecure-skip-tls-verify=true flags

Logs or error messages error response:

error: x509: certificate has expired or is not yet valid: current time 2024-10-22T21:56:20Z is after 2024-10-02T10:42:59Z
danieloh30 commented 1 month ago

Just confirmed that I still have the same issue in https://developers.redhat.com/courses/quarkus/panache

[root@crc-lgph7-master-0 /]# oc login -u developer -p developer error: x509: certificate has expired or is not yet valid: current time 2024-10-22T22:24:47Z is after 2024-10-02T10:42:59Z [root@crc-lgph7-master-0 /]#

ryanj commented 1 month ago

Possible workaround: avoid using the oc login command to connect as a "developer". You should be logged in as a system:admin account by default.

danieloh30 commented 1 month ago

If I have to do with admin cred, I need to change all markdown files. I need to confirm if there's no way to fix this before updating all files.

ryanj commented 3 weeks ago

@danieloh30 Let me know if there is a particular track I can take a look at. I should be able to upgrade it to a newer release to resolve the error.