diff --git a/README.md b/README.md index 5304011..44cc0b0 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ By default the directory (work_dir) containing the working data (csr,certificate | key_file | **d**,g | Path to store (and load) the private key file | {cert_dir}/{cert_id}.key | | mode | **d**,g | Mode of challenge handling used | standalone | | webdir | **d**,g | [webdir] Put acme challenges into this path | /var/www/acme-challenge/ | +| webdir_verify | **d**,g | [webdir] Verify challenge after writing it | true | | bind_address | **d**,g | [standalone] Serve the challenge using a HTTP server on given IP | | | port | **d**,g | [standalone] Serve the challenge using a HTTP server on this port | 80 | | dns_ttl | **d**,g | [dns.*] Write TXT records with this TTL (also determines the update wait time at twice this value | 60 | diff --git a/acertmgr/modes/webdir.py b/acertmgr/modes/webdir.py index 7a2878d..28dc4a7 100644 --- a/acertmgr/modes/webdir.py +++ b/acertmgr/modes/webdir.py @@ -15,7 +15,7 @@ from acertmgr.modes.abstract import AbstractChallengeHandler class ChallengeHandler(AbstractChallengeHandler): def __init__(self, config): AbstractChallengeHandler.__init__(self, config) - self._verify_challenge = True + self._verify_challenge = str(config.get("webdir_verify", "true")).lower() == "true" self.challenge_directory = config.get("webdir", "/var/www/acme-challenge/") if not os.path.isdir(self.challenge_directory): raise FileNotFoundError("Challenge directory (%s) does not exist!" % self.challenge_directory)