-
Notifications
You must be signed in to change notification settings - Fork 0
How to set custom cert in openshift console
Cesar Celis Hernandez edited this page Feb 15, 2024
·
2 revisions
To document how to set custom cert in openshift console
- https://access.redhat.com/solutions/5902661
- https://www.ibm.com/docs/en/noi/1.6.3?topic=runbooks-creating-custom-certificate-red-hat-openshift
- First:
$ oc create secret tls console-tls --key=api.openshift.min.dev.key --cert=api.openshift.min.dev.cer -n openshift-config
secret/console-tls created
$ oc edit consoles.operator.openshift.io cluster
spec:
route:
secret:
name: console-tls
- Then:
oc --namespace openshift-ingress create secret tls custom-certs-default --cert=api.openshift.min.dev.cer --key=api.openshift.min.dev.key
oc patch --type=merge --namespace openshift-ingress-operator ingresscontrollers/default --patch '{"spec":{"defaultCertificate":{"name":"custom-certs-default"}}}'