bot: Add 3 1 1 to cert hash
All checks were successful
Build Docker / Build Docker (push) Successful in 16s
All checks were successful
Build Docker / Build Docker (push) Successful in 16s
This commit is contained in:
parent
8cd5ba5c56
commit
b7ca3e2ddc
4
bot.py
4
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_process = subprocess.Popen(" ".join(tlsa_command), shell=True, stdout=subprocess.PIPE)
|
||||||
tlsa_output, _ = tlsa_process.communicate()
|
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
|
# Check for TLSA record
|
||||||
response = resolver.resolve("_443._tcp."+domain, "TLSA")
|
response = resolver.resolve("_443._tcp."+domain, "TLSA")
|
||||||
|
Loading…
Reference in New Issue
Block a user