-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for wildcard domains via DNS-01 challenge #295
Conversation
…s-01 is being used or http-01
Awesome! |
Yes! 🫶🏼 |
I can't seem to request a wildcard cert and assign to an app. Based on the README updates in this PR, I tried the following.
But this generates a non-wildcard (ruby-getting-started.mydomain.com). What am I missing? |
What is the output of |
|
If you want a wildcard cert on your domain, you need to attach the wildcard domain to your app. This plugin only fetches certificates for domains attached to the app. |
Thanks for your help. Sorry for the noob questions. I think I'm a bit confused by the terminology. Attaching the wildcard domain to the app leads me to believe *.mydomain.com will route to my app (ruby-getting-started). Wouldn't this prevent me from deploying additional apps (e.g. node-js-getting-started), since all other app domains would match the wildcard domain? My goal is to have a global domain (mydomain.com) and a wildcard LE cert (mydomain.com, *.mydomain.com). And when I deploy an app to Dokku (like ruby-getting-started), have it be hosted at ruby-getting-started.mydomain.com and configured with the wildcard LE cert. |
If you add that a specific domain to another app, that would take precedence over the app that has the wildcard domain associated, so no, it wouldn't prevent you from deploying additional apps. |
I'm still not able to get this working. I can add the wildcard domain, but then I get an error generating the cert, as the non-wildcard domain is redundant.
If I remove the non-wildcard domain, there's some issue with the generated crt file.
|
Mind creating a new ticket? Debugging in a GitHub PR is not a great experience ;) |
This MR implements support for DNS-01 challenges via lego, which is necessary for wildcard domain support. My testing shows that everything works normally except for revoking certificates when you have multiple domains, at least one of which is a wildcard certificate. It's not clear to me that this ever worked, so I think thats an okay trade-off (the revoke command isn't even documented, and this seems like a lego bug from my investigation).
Closes #189
Refs #257
Refs #197
Refs #203
Refs #147
Refs #170
Refs #148
Refs #144
Refs #110
Refs #125
Refs #114
Refs #7