diff options
author | Joona Hoikkala <joona@kuori.org> | 2018-01-15 01:54:35 +0300 |
---|---|---|
committer | Joona Hoikkala <joona@kuori.org> | 2018-01-15 01:54:35 +0300 |
commit | 75d90856c9bb1b21df115612ca268897ceca5448 (patch) | |
tree | 3e2e8979f59cdac60bc2c79c7eb17a606cc2d388 | |
parent | e191bdb3745c8e27694d9376fe1d946a06e1b0ac (diff) |
Handle the reverter file registration before opening file handlea-chall-dir
-rw-r--r-- | certbot-apache/certbot_apache/http_01.py | 2 |
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 |