Skip to content
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

Do wildcard certificates with subdomain delegation via _acme-challenge work? #91

Open
faultymajority opened this issue Jan 15, 2025 · 3 comments

Comments

@faultymajority
Copy link

Question, not a bug report.

Cloudflare outside Enterprise doesn't allow delegating a subdomain, and API DNS edit keys are always for a full zone.

It is my understanding that a CNAME _acme-challenge.sub.domain.example.com -> throwaway-domain.com should allow issuing wildcard certificates *.sub.domain.example.com (and specific certificates as well).

Is this supported currently, and if not would this be a big lift to implement?

@mholt
Copy link
Contributor

mholt commented Jan 15, 2025

I think that would work. What do you mean by "is this supported" though? Let's Encrypt supports it, or do you mean something else?

@faultymajority
Copy link
Author

faultymajority commented Jan 15, 2025

Whether this plugin supports it? I'm not sure whether Caddy itself or this plugin would implement this. If so - might be nice to add an example, if only to point out this approach to work around Cloudflare's lack of API key granularity.

@mholt
Copy link
Contributor

mholt commented Jan 15, 2025

Typically delegation is a more permanent thing, i.e. you create the record and leave it. In that way, I guess an automated record wouldn't even need to be created. 🤔

I haven't tried it tbh. But I'd be open to non-invasive patches if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants