[issue35422] misleading error message from ssl.get_server_certificate() when bad port
Ruluk
report at bugs.python.org
Mon Apr 8 12:22:15 EDT 2019
Ruluk <juank_nino at hotmail.com> added the comment:
I would still validate the error somewhere, maybe before reaching the OpenSSL library, because that same error is also shown for other cases. E.g:
http_connection = HTTPSConnection("localhost")
http_connection.request("POST", my_url, my_body, my_headers)
The use of an HTTPS connection for localhost effectively produces the same "SSL: WRONG VERSION NUMBER" error.
----------
nosy: +ruluk
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35422>
_______________________________________
More information about the Python-bugs-list
mailing list