From ec99b9694d8e669cd5338ac3d4c05aa3d70915a1 Mon Sep 17 00:00:00 2001 From: HgO Date: Sun, 14 Jun 2020 11:15:16 +0200 Subject: [PATCH] Don't split the validation challenge --- files/acme_renew_cert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/acme_renew_cert.py b/files/acme_renew_cert.py index 0a8a935..4cf3845 100755 --- a/files/acme_renew_cert.py +++ b/files/acme_renew_cert.py @@ -89,11 +89,11 @@ def perform_http01_challenge( :rtype: str """ response, validation = challenge.response_and_validation(client_acme.net.key) - validation_filename, validation_content = validation.split('.') + validation_filename, _ = validation.split('.') challenge_path = os.path.join(challenge_dir, validation_filename) with open(challenge_path, 'w') as f_out: - f_out.write(validation_content) + f_out.write(validation) client_acme.answer_challenge(challenge, response)