ssl.match_hostname is deprecated in Python 3.7

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Starting with Python 3.7, SSLContext uses OpenSSL for hostname matching. Change PyMongo to let SSLContext handle hostname matching when it can, and it supports IP addresses (Python 3.5+). Continue to directly call our backport of match_hostname otherwise.

      While we're at it, make sure our backport of match_hostname is completely up to date with the version in CPython 3.7.

            Assignee:
            Bernie Hackett
            Reporter:
            Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: