Sphere
Log in Join
☆ 12

Caddy automatic HTTPS works for one hostname but not wildcard

caddy.example.com gets a certificate fine. *.home.example.com does not. I am using the standard Caddy package from apt.

⚑ Report

3 replies

☆ 0
M Meera ·2026-10-08#1

Wildcard certificates require the DNS-01 challenge. The standard Caddy build has no DNS provider plugin, so it silently cannot solve it.

⚑ Report
☆ 0
O Owen ·2026-10-08#2

Do I need to build Caddy myself with a Cloudflare module?

⚑ Report
☆ 0
T Tara ·2026-10-08#3

Yes, or use the official download page and select the Cloudflare module. Then add the API token as an env var and set the dns challenge in your Caddyfile. HTTP-01 will never work for a wildcard.

⚑ Report
Log in to reply.