Benjamin Peterson added the comment: As the documentation says "If context is specified and has a verify_mode of either CERT_OPTIONAL or CERT_REQUIRED, then by default host is matched against the host name(s) allowed by the server’s certificate. If you want to change that behaviour, you can explicitly set check_hostname to False."
It is rather weird that HTTPSConnection has its own "check_hostname" parameter independent of the one on the SSL context. Alex, what do you think of this patch? ---------- Added file: http://bugs.python.org/file37325/ch-weirdness.aptch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22959> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com