Edit: ssl_match_hostname.py
from ssl import match_hostname, CertificateError
Cancel