Christian Heimes added the comment:
This is a duplicate of #28414. I decided to not fix Python 3.6 because I had to
break an existing API to fix the problem.
And no, it didn't get fixed by accident. Nathaniel and I poured a lot of time
and effort into untangling this mess. The fix is unrelat
New submission from Michael Casadevall :
Test case attached.
In Python 3.6, ssl tries to validate the hostname on its own, but fails to
convert the SSL certificates hostname from IDNA back to UTF-8 and mismatches.
Python 3.7 and master are unaffected since this got fixed by accident when
val