From e5d776388d366caa77b3dde431554e8bd2dd5992 Mon Sep 17 00:00:00 2001 From: Martin Jantosovic Date: Thu, 28 May 2020 09:05:46 +0200 Subject: [PATCH] fix(dns): Fixed api secret encoding --- certbot_plugin_websupport/dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot_plugin_websupport/dns.py b/certbot_plugin_websupport/dns.py index 2dd0112..b74d77e 100644 --- a/certbot_plugin_websupport/dns.py +++ b/certbot_plugin_websupport/dns.py @@ -199,7 +199,7 @@ def _find_txt_record_id(self, zone_id, record_name, record_content): def _send_request(self, method, path, data=None): timestamp = int(time.time()) canonical_request = "%s %s %s" % (method, path, timestamp) - signature = hmac.new(self.api_secret, canonical_request.encode('utf-8'), hashlib.sha1).hexdigest() + signature = hmac.new(self.api_secret.encode('utf-8'), canonical_request.encode('utf-8'), hashlib.sha1).hexdigest() headers = { "Authorization": "Basic %s" % (base64.b64encode("%s:%s" % (self.api_key, signature))),