From b7ca3e2ddc66658f8b712a6bc88f78ae5b42b3f9 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 27 Sep 2023 18:03:53 +1000 Subject: [PATCH] bot: Add 3 1 1 to cert hash --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index c34b90a..97bcf7c 100644 --- a/bot.py +++ b/bot.py @@ -192,10 +192,10 @@ async def ssl(ctx, domain: str): tlsa_process = subprocess.Popen(" ".join(tlsa_command), shell=True, stdout=subprocess.PIPE) tlsa_output, _ = tlsa_process.communicate() - tlsa_server = binascii.hexlify(tlsa_output).decode("utf-8") + tlsa_server = "3 1 1 " + binascii.hexlify(tlsa_output).decode("utf-8") - message = message + "\n## TLSA Record from webserver:\n`3 1 1 " + tlsa_server + "`\n" + message = message + "\n## TLSA Record from webserver:\n`" + tlsa_server + "`\n" # Check for TLSA record response = resolver.resolve("_443._tcp."+domain, "TLSA")