Caddy generates a root.crt under pki/authorities/local/root.crt. If I then add this certificate to all the machines on the company intranet as a trusted CA root, then everyone can go to https://example.internal and browsers give the green lock icon, etc, everyone is happy.
However, I noticed root.crt is only good for 10 years. After 10 years, is everything going to break?
Good question; the root certificate isn’t automatically renewed (because it has to be installed in various places anyway). I’ve thought about a longer lifetime for them – and I could be convinced of it probably – I just figured 10 years was a reasonable space between operational “checkpoints”.
If you use the same key, assuming the algorithm is still secure, then the certs will all still be trusted, just plop in the new root cert.
Either this or I have until about 2029 to figure out something else.
Nah, it’s not Caddy’s fault, just the nature of the beast with root certs. Any option for auto-renewing root cert would probably need to be opt-in because it could potentially break a lot of things otherwise.