-
Notifications
You must be signed in to change notification settings - Fork 33
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
Filter out mis-configured domains before sending the certificate request to LetsEncrypt #36
Comments
@marckohlbrugge Thanks for your feedback! Can you explain your set up a little bit more? If one of |
Ah sorry, there's indeed only one certificate with multiple domains included. Imagine I'm running a service like squarespace.com where anyone can host a site either on a subdomain ( The problem I'm running into is that when a customer's domain ( e.g. What I'd like to do in this case is exclude that domain from being included in the certificate. Long term a better approach would be for me to use logic separate from this gem (e.g. do a daily check whether each customer's domain name still resolves and if not send them an email, etc), but for now it would be really handy if |
If a requested domain fails verification, LetsEncrypt won't release a certificate. LetsEncrypt does the verification, not this gem, so it's not something that can be 'ignored'. It's also outside the scope of this gem right now to pre-check the domains before sending them as part of the request to LetsEncrypt. I do appreciate the problem you have though. We are considering adding additional DNS checks to the rake task to help users understand when they have configured their domains incorrectly, and maybe from there we could add an additional feature that filters some mis-configured domains. |
Makes sense. Thanks! I thought I had found a quick workaround for this part of the code: https://github.com/pixielabs/letsencrypt-rails-heroku/blob/master/lib/tasks/letsencrypt.rake#L65 By assuming that an I might add some of those DNS checks you mentioned myself. Will send a pull request if I do. |
That's definitely the right spot! We'd kinda like to move away from For now, I'll leave this issue open to track the request, thanks again @marckohlbrugge! |
Right now when a verification fails in
rake letsencrypt:renew
it raisesLetsencrypt::Error::VerificationError
and aborts verifying any further domains.Would it be worth making this behaviour configurable, so rather than completely aborting the Rake task it would continue verifying other domains?
Users of my app can add a custom domain which we then secure through Let's Encrypt. With the current functionality we're unable to renew ANY certificates of any customer the moment one of those domains stops resolving (e.g. when a customer removes their CNAME record and we're now longer able to verify the domain for them.)
The text was updated successfully, but these errors were encountered: