Sam's Tech Blog

'You can check out any time you like, But you can never leave!'

2020-03-23

Certbot account does not exist.

Certbot. Letsencrypt. Attempting to renew cert from .conf produced an unexpected error: Account does not exist.

Certbot account does not exist.

Certbot account does not exist. Can't renew Letsencrypt certificate after server change or Certbot upgrade.

Cert is due for renewal, auto-renewing…

Attempting to renew cert from /etc/letsencrypt/renewal/xxxxxx.ch .conf produced an unexpected error: Account at /etc/letsencrypt/accounts/acme-v0 1.api.letsencrypt.org/directory/9f470d5127bb80722c119126e54ca01a does not exist. Skipping.

Solutution is simple.

Just create a sym-link from the "missing" account to the new account folder and regenerate.
(You may have to remove the broken folder/account first.)

cd /etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/
ln -s 6e0efe40f846eaa4b10d1476dc336ce8/ 9f470d5127bb80722c119126e54ca01a

ls -ahl

drwx------ 2 root root  5 Mar 23 12:23 6e0efe40f846eaa4b10d1476dc336ce8
lrwxrwxrwx 1 root root 33 Mar 23 12:24 9f470d5127bb80722c119126e54ca01a -> 6e0efe40f846eaa4b10d1476dc336ce8/