Comment on Issues with https certs locally
valar@lemmy.ca 2 weeks ago
IME Caddy will not do wildcard domains “by default” if you just configure sub.domain.com {} for everything. It will try to create a unique cert for each. You have to specifically configure it to use a wildcard cert.
DarkSirrush@piefed.ca 2 weeks ago
Yeah it will, if you have even a single reference to a wildcard, preferably as one of your first entries in your caddyfile.
https://caddyserver.com/docs/automatic-https
You can literally get a wildcard by putting in the following entry, before any other routing logic: