Lets Encrypts account ID in Caddyfile

Hello,

Because Lets Encrypts expands our rate-limit we need to make sure all our servers will operate with static accountID.
I know I can see (and maybe change) the account ID from:
caddy_data/acme/acme-v02.api.letsencrypt.org-directory/users/noam@example.com

But is there an option to set it up from the Caddyfile instead? This way, it will be easier to manage when using multiple servers.

Do I need to update both files:
**
/var/lib/caddy/.local/share/caddy/acme/acme-v02.api.letsencrypt.org-directory/users/noam@example.com/noam.json
/var/lib/caddy/.local/share/caddy/acme/acme-v02.api.letsencrypt.org-directory/users/noam@example.com/noam.key
**

Or only update the number inside “noam.json”?

You can configure a specific account key using the JSON config: JSON Config Structure - Caddy Documentation

This is the first request we’ve had for it in the Caddyfile, so I don’t think it’s implemented yet.

1 Like

You would have to update both. The account URL needs to go in the JSON and the key in the key file.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.