-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to use two different cloudflare accounts #315
Comments
Oooh, this is a new usecase that is not taken into account. |
I believe this could be made slightly easier. Currently, it's possible to select the DNS authenticator based on the directory name, as described here: However, the directory name must match one of the known DNS authenticators (e.g., /etc/letsencrypt/cloudflare, /etc/letsencrypt/digitalocean, etc.). A useful improvement would be to extend this logic so that the authenticator is selected not just by the driver name (directory), but also by the filename of the credentials file. For example, if someone creates:
Then there could be a way to determine which authenticator to use based on the cert path, such as:
While still falling back to the default cloudflare.ini file when using the environment variable: This approach would allow users to rely on the default authenticator for most cases, but use different Cloudflare accounts when needed — ideal for more complex setups involving multiple domains managed under separate Cloudflare accounts. I hope this makes things a bit clearer. I'm happy to provide more details if needed. Thanks |
I think I understand what you are after. A suggestion here is to implement something like this:
which outputs "such". Which means that we would allow an unique identifier for the DNS authenticator which comes after the final "-". |
Hello,
First of all, thanks for the great tool. I'm trying to use it for our company servers, but I’ve run into one issue.
Historically, we have two different Cloudflare accounts for domains that are managed on the same server and through a single Nginx instance (domains are internal so other verification method can't be used).
Is there a way to configure docker-nginx-certbot to handle this setup using the DNS-01 challenge?
I tried creating two files: /etc/letsencrypt/cloudflare.ini and /etc/letsencrypt/cloudflare2.ini, and then referring to cloudflare2 via the path in ssl_certificate_key (ssl_certificate_key /etc/letsencrypt/live/test.dns-cloudflare2/privkey.pem;). Unfortunately, this approach doesn't seem to work.
Is there a way to solve this?
Thank you.
The text was updated successfully, but these errors were encountered: