Christian Heimes <li...@cheimes.de> added the comment:

SSLV3_ALERT_UNEXPECTED_MESSAGE means that the server is responding with 
incorrect TLS data. That's usually the case when the port on the server is HTTP 
instead of HTTPS. It's also possible that the server does not like the SNI 
header (Server Name Indication) and closes the connection incorrectly.

By the way unverified context is insecure and should not be used in production. 
I assume that you are using an unverified context because hostnames with a 
trailing dot are not supported by OpenSSL, see #31997 and #40306.

----------
nosy: +christian.heimes
resolution:  -> third party
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42077>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to