The ssl_match_hostname Package

The match_hostname() function from Python 3.2, essential when using SSL.

exception cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.ssl_match_hostname.CertificateError

Bases: exceptions.ValueError

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.ssl_match_hostname._dnsname_to_pat(dn)
cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.ssl_match_hostname.match_hostname(cert, hostname)

Verify that cert (in decoded format as returned by SSLSocket.getpeercert()) matches the hostname. RFC 2818 rules are mostly followed, but IP addresses are not accepted for hostname.

CertificateError is raised on failure. On success, the function returns nothing.

Previous topic

Subpackages

Next topic

Subpackages

This Page