mirror of
https://github.com/webmin/webmin.git
synced 2026-04-16 14:10:26 +01:00
Make challenge file world-readable, to ensure Apache can read it
This commit is contained in:
@@ -115,6 +115,7 @@ def get_crt(account_key, csr, acme_dir, log=LOGGER, CA=DEFAULT_CA):
|
||||
wellknown_path = os.path.join(acme_dir, token)
|
||||
with open(wellknown_path, "w") as wellknown_file:
|
||||
wellknown_file.write(keyauthorization)
|
||||
os.chmod(wellknown_path, 0777)
|
||||
|
||||
# check that the file is in place
|
||||
wellknown_url = "http://{0}/.well-known/acme-challenge/{1}".format(domain, token)
|
||||
|
||||
Reference in New Issue
Block a user