Skip to content

How to set custom cert in openshift console

Cesar Celis Hernandez edited this page Feb 15, 2024 · 2 revisions

Objective:

To document how to set custom cert in openshift console

Link:

Steps:

  1. 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
  1. 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"}}}'
Clone this wiki locally