sudo certbot --server https://acme-v02.api.letsencrypt.org/directory -d *.$YOUR_WILDCARD_DOMAIN --manual --preferred-challenges dns-01 certonly
dig -t TXT _acme-challenge.$YOUR_WILDCARD_DOMAIN
It should give you something like the below:
;; ANSWER SECTION:
_acme-challenge.$YOUR_WILDCARD_DOMAIN. 599 IN TXT "--1YDlFE4K73i9cjHN5de6e-D8yhmOqaj6yIRcpZ_BU"
/etc/letsencrypt/live/$YOUR_WILDCARD_DOMAIN
You can find the following files in that directory:
ls /etc/letsencrypt/live/$YOUR_WILDCARD_DOMAIN
cert.pem chain.pem fullchain.pem privkey.pem README
cat fullchain.pem /etc/origin/master/ca.crt privkey.pem > router.pem
oc project default
oc export secret router-certs > ~/old-router-certs-secret.yaml
oc create secret tls router-certs --cert=router.pem --key=privkey.pem -o json --dry-run| oc replace -f -
oc annotate service router service.alpha.openshift.io/serving-cert-secret-name- service.alpha.openshift.io/serving-cert-signed-by-
oc annotate service router service.alpha.openshift.io/serving-cert-secret-name=router-certs
oc rollout latest dc/router
If you encounter this error:
service.alpha.openshift.io/serving-cert-generation-error: secret/router-certs
references serviceUID , which does not match 0211a462-f722-11e8-ac86-001c42500494
service.alpha.openshift.io/serving-cert-generation-error-num: "10"
Do the following:
oc delete secret router-certs
oc annotate service router service.alpha.openshift.io/serving-cert-generation-error-
oc annotate service router service.alpha.openshift.io/serving-cert-generation-error-num-