also debug the written conf file

This commit is contained in:
Noah Swartz 2015-12-23 14:57:14 -08:00
parent c9b9b0edda
commit 49f36f8071

View file

@ -104,8 +104,9 @@ class ApacheTlsSni01(common.TLSSNI01):
self.configurator.reverter.register_file_creation(
True, self.challenge_conf)
with open(self.challenge_conf, "w") as new_conf:
with open(self.challenge_conf, "rw") as new_conf:
new_conf.write(config_text)
logger.debug(new_conf.read())
return addrs