-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Caddy attempts to manage SSL certificate when auto_https
is set to disable_certs
#6148
Comments
You can't specify What SANs do your certificates have? |
Would specifying separate server blocks for each hostname work in this instance?
I know for a fact that the |
Possibly, but I don't have a good sense of your goal.
In that case, probably yes, you should separate them so it loads both certificates. FWIW, this is only a Caddyfile limitation currently, you could load both explicitly in a JSON config. The overwhelming majority of Caddy users let Caddy issue its own certs and don't provide their own, so this is usually not an issue. |
After creating separate server blocks for each hostname and removing the It still seems weird to me that in this case Caddy effectively ignores |
Yeah, the Automatic HTTPS logic is extremely complex, reasoning about it and fixing bugs in it is very hard. I'm not surprised there's edgecases like this we haven't found yet. I agree it's a bug. |
The web server has to provide the same service across two different hostnames using different domain names.
Unfortunately we can't use HTTP-01 for ACME and DNS-01 isn't an option with Caddy due to our DNS provider not being supported. |
There are ways around that. You could use https://github.com/joohoi/acme-dns instead (along with https://github.com/caddy-dns/acmedns), or you could do ACME challenge delegation with something like DuckDNS: https://github.com/caddy-dns/duckdns?tab=readme-ov-file#challenge-delegation, or with any other DNS provider with the |
Unfortunately it seemed that the solution just caused bigger issues. Removing the Seems like I'm going to have to disable Auto HTTPS entirely because of this load balancer issue. |
@drakon64 I was able to find that by running |
I have the following Caddyfile:
The two
tls
blocks provide an SSL certificate forsubdomain.example1.com
and*.example2.com
.Despite SSL certificates already being provided and
auto_https
being set todisable_certs
, Caddy still attempts to provide replacement SSL certificates via ACME. Settingauto_https
tooff
resolves this but disables other functionality we require.Is this a bug or is something wrong in our config?
The text was updated successfully, but these errors were encountered: