Software and Systems How-To's, Tutorials, Demos, Notes

How to install Wildcard SSL certificates from Letsencrypt to your OpenShift Router

Assumptions

WildCard certificate

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"

Update the OpenShift router certificates

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-