aykevl / mta-sts

Online tool for MTA-STS checking: https://aykevl.nl/apps/mta-sts/
BSD 2-Clause "Simplified" License
39 stars 12 forks source link

Upgrade to Python3.7 ? #8

Open NicolaiSoeborg opened 5 years ago

NicolaiSoeborg commented 5 years ago

Hey

Can you upgrade python to 3.7 or make it continue checking MTA-STS files if https cert checking fails?

Currently I hit this bug when trying to verify my domain: https://bugs.python.org/issue28414

import http, ssl

host = "xn--sb-lka.org"
context = context = ssl.create_default_context()
conn = http.client.HTTPSConnection(host, timeout=10, context=context)

conn.request('GET', f'https://{host}/')
# CertificateError: hostname 'søb.org' doesn't match 'xn--sb-lka.org'