Hostname matching failure should include subjectAltName types

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When hostname matching fails, PyMongo raises an exception like:

      ServerSelectionTimeoutError: hostname '127.0.0.1' doesn't match either of 'serverhostname', '127.0.0.1' 
      

      We could include the subjectAltName information in this error to help debug issues like PYTHON-1627, eg:

      ServerSelectionTimeoutError: hostname '127.0.0.1' doesn't match either of 'serverhostname' (DNS), '127.0.0.1' (DNS)
      

            Assignee:
            Unassigned
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: