Si certbot renew --dry-run
vous pond quelque chose comme
ceci lors de l'exécution:
[...] ERROR:certbot._internal.renewal:Failed to renew certificate mondomaine.fr with error: Missing command line flag or config entry for this setting: Please choose an account Choices: ['localhost@2020-12-08T14:10:30Z (4b7c)', 'packer-output-a2505a21-0328-42a3-b2ec-69a768d7bf78.localdomain@2020-12-17T11:11:07Z (a0fe)'] [...]
Alors il suffit de supprimer le ou les dossier(s) où
acme-staging
figure dans le nom de fichier dans le répertoire
/etc/letsencrypt/accounts/
. Dans mon cas, la commande qui a
résolu le problème a été:
rm -rf /etc/letsencrypt/accounts/acme-staging-v02.api.letsencrypt.org certbot renew --dry-run
On peut le généraliser comme ceci: rm -rf
/etc/letsencrypt/accounts/acme-staging*