How to update Update Let's Encrypt registration email address

@matt previously answered

That you have to use cartbot --update-registration but how do I let certbot know which domains are managed by caddy?

Or if I change email in my Caddyfile it would be update next time domain is renewed?

I believe Caddy automatically renews certificates before they expire by checking the expiration dates and then renewing them around 30 days before they are due to expire. As long as the Caddyfile or email environmental variable is updated with the new email, it will use it the next time.

You can also have different domains use different emails with its certificate generation if you specify them in each web blocks tls directive.

1 Like