Web / Caddy Server Interview questions
Explain the lifecycle of a Caddy TLS certificate?
A certificate under Caddy's management moves through a repeating cycle rather than a one-time setup, driven by CertMagic's background maintenance loop.
On first load, Caddy checks its storage for an existing valid certificate; if none exists, it starts an ACME order, completes a challenge to prove domain control, receives the issued certificate, and writes it to storage before serving HTTPS. From then on, a background check runs continuously: once the certificate nears its expiry window, the same order-challenge-issue sequence repeats automatically, so a live site theoretically never needs a human to touch its certificate again.
More Related questions...