mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Make sure the account key exists when renewing certificate (in particular because the account key is not backup/restored)
This commit is contained in:
parent
7aa3ff5255
commit
337387ccbc
1 changed files with 4 additions and 0 deletions
|
@ -483,6 +483,10 @@ def _check_acme_challenge_configuration(domain):
|
|||
|
||||
|
||||
def _fetch_and_enable_new_certificate(domain, staging=False, no_checks=False):
|
||||
|
||||
if not os.path.exists(ACCOUNT_KEY_FILE):
|
||||
_generate_account_key()
|
||||
|
||||
# Make sure tmp folder exists
|
||||
logger.debug("Making sure tmp folders exists...")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue