Lego fails on account changes #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The lego role / renew script fails when the account info changes but the instance name persists. I.e. when changing letsencrypt environments.
Maybe add some kind of logic / error handling?
Lego's filesystem structure is the cause for this here:
due to the changing
account(oracme_serverfor that matter), the ansible role needs to:lego_acme_server_urlis the same (by checking if the folder exists in the filesystem)lego_acme_account_emailis the same (by checking if the folder exists in the filesystem and has anaccount.jsoninside itThis should be checked in
roles/lego/files/lego_run.sh#L14and then switch the action torun(fromrenew).It should also check whether the subject of the certificates actually contain all required certificates, in case it doesn't we should renew right away.