How does Caddy get HTTPS certificates automatically?
Caddy requests and renews free certificates from Let's Encrypt or ZeroSSL for every site in your Caddyfile, with no extra setup. It needs a public domain name that points to your server and ports 80 and 443 reachable from the internet.