[issue28414] SSL match_hostname fails for internationalized domain names

Nathaniel Smith report at bugs.python.org
Thu Jun 8 03:33:27 EDT 2017


Nathaniel Smith added the comment:

If the SSL module followed the pattern of encoding all str to bytes at the edges while leaving bytes alone, and used exclusively bytes internally (and in this case by "bytes" I mean "bytes objects containing A-labels"), then it would at least fix this bug and also make it possible for library authors to implement their own IDNA handling. Right now if you pass in a pre-encoded byte-string, exactly what ssl.py needs to compare to the certificate, then ssl.py will convert it *back* to text :-(.

----------
nosy: +njs

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28414>
_______________________________________


More information about the Python-bugs-list mailing list