[issue27354] SSLContext.load_verify_locations cannot handle paths on Windows which cannot be encoded using mbcs
STINNER Victor
report at bugs.python.org
Mon Jun 20 15:58:05 EDT 2016
STINNER Victor added the comment:
The Python ssl module is a wrapper to the OpenSSL library. For this issue, we are talking about the function SSL_CTX_load_verify_locations():
https://www.openssl.org/docs/manmaster/ssl/SSL_CTX_load_verify_locations.html
OpenSSL expects a byte string for CAfile and CApath. On Windows, it means a string encoded to the ANSI code page.
OpenSSL doesn't seem to support paths not encodable to the ANSI code page on Windows. I suggest you to report the issue to the OpenSSL bug tracker:
https://www.openssl.org/community/#bugs
A workaround is to avoid characters not encodable to the ANSI code page, maybe by using symbolic links?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27354>
_______________________________________
More information about the Python-bugs-list
mailing list