Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoona Hoikkala <joona@kuori.org>2018-01-15 01:54:35 +0300
committerJoona Hoikkala <joona@kuori.org>2018-01-15 01:54:35 +0300
commit75d90856c9bb1b21df115612ca268897ceca5448 (patch)
tree3e2e8979f59cdac60bc2c79c7eb17a606cc2d388
parente191bdb3745c8e27694d9376fe1d946a06e1b0ac (diff)
Handle the reverter file registration before opening file handlea-chall-dir
-rw-r--r--certbot-apache/certbot_apache/http_01.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/certbot-apache/certbot_apache/http_01.py b/certbot-apache/certbot_apache/http_01.py
index 4a501eb94..3b942823d 100644
--- a/certbot-apache/certbot_apache/http_01.py
+++ b/certbot-apache/certbot_apache/http_01.py
@@ -101,9 +101,9 @@ Alias /.well-known/acme-challenge {0}
name = os.path.join(self.challenge_dir, achall.chall.encode("token"))
+ self.configurator.reverter.register_file_creation(True, name)
with open(name, 'wb') as f:
f.write(validation.encode())
- self.configurator.reverter.register_file_creation(True, name)
os.chmod(name, 0o644)
return response