-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Support for preferred_chains
in Caddyfile
#4185
Comments
Sure, pull requests welcomed to add that. |
Cool! I've been playing around with the Caddy source code and with my very limited experience of Go, I managed to get it work somehow... Only as a global option for now, though. I'll send in a PR for review in the near future. A couple of questions @mholt: caddy/modules/caddytls/acmeissuer.go Lines 442 to 453 in 7b500e7
Should
I've used the following structure for the (global) config:
And for a "local" config the structure would be the same except that it is of course placed in the ACME issuer config:
The config could be done in the following ways, for example:
Does that structure seem good, or should I adjust it in some way? |
@Klooven Nice work -- I think that structure looks good, at least good enough for a PR. Congrats figuring out Go! |
Created PR #4192! If everything is ok and it gets merged, I'd be happy to update the docs on the website as well. |
As mentioned in #3854, Let's Encrypt now provides two different chains when acquiring a certificate: one with a cross-signed root certificate (default) and one with a self-signed root certificate.
I'd like to use the alternative chain, which seems to be possible using the
preferred_chains
option in Caddy. From what I've understood, though, this is currently only configurable through JSON.Would it be possible to add a new global option in the Caddyfile to support changing the preferred chain without configuring Caddy using JSON?
The text was updated successfully, but these errors were encountered: