forked from openshift/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
OpenShift 3 SSL
Endi S. Dewata edited this page Sep 15, 2023
·
1 revision
To install certbot:
$ dnf install certbot
To request a new SSL certificate:
$ oc scale dc/<app> --replicas=0 $ certbot certonly --standalone \ -d <domain> \ --agree-tos -m <email> $ oc scale dc/<app> --replicas=1 $ oc create route edge <name> \ --service=<service> \ --cert=cert.pem \ --key=privkey.pem \ --hostname=<domain> \ --insecure-policy=Redirect
To renew SSL certificate:
$ oc scale dc/<app> --replicas=0 $ certbot renew $ oc scale dc/<app> --replicas=1 $ oc delete route <name> $ oc create route edge <name> \ --service=<service> \ --cert=cert.pem \ --key=privkey.pem \ --hostname=<domain> \ --insecure-policy=Redirect