Certbot renew error: Account at does not exist.

Posted on January 9, 2020 at 4:24 pm

If you get this certbot error:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/www.website.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Attempting to renew cert (www.website.com) from /etc/letsencrypt/renewal/www.website.com.conf produced an unexpected error: Account at /etc/letsencrypt/accounts/acme-v01.api.letsencrypt.org/directory/1231b12347f103123bf4eb123aa09123 does not exist. Skipping.

It means the directory “1231b12347f103123bf4eb123aa09123” is not found here:

/etc/letsencrypt/accounts/acme-v01.api.letsencrypt.org/directory/

This generally happens when you move your /etc/letsencrypt/ directory on a new server.

To fix this issue, just type:

ls -la /etc/letsencrypt/accounts/acme-v01.api.letsencrypt.org/directory/

Then you should have a directory here (of the account related to the new server), i.e:

abc1b12347f103123bf4eb123aa09abc

Copy that folder name and overwrite it on every .conf file present on:

/etc/letsencrypt/renewal

For example:

[renewalparams]
authenticator = webroot
account = 1231b12347f103123bf4eb123aa09123
...

Becomes this:

[renewalparams]
authenticator = webroot
account = abc1b12347f103123bf4eb123aa09abc
...

Then try to re-run certbot to update the certs and it should work fine!

Receive updates via email

Other Posts

Updated Posts