[issue12803] SSLContext.load_cert_chain() should accept a password argument

Antoine Pitrou report at bugs.python.org
Wed Aug 24 23:20:48 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

I have one last concern: what is the character set of an OpenSSL password? I see you are using PyUnicode_AsEncodedString(x, NULL, NULL), which basically returns a utf8-encoded bytestring. Since the OpenSSL doc don't specify anything, we could accept it as a best-effort thing.
Or perhaps we should use PyUnicode_EncodeFSDefault(), which uses the "filesystem encoding", which is usually the same as the current terminal (assuming the password is typed on a terminal).

----------

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


More information about the Python-bugs-list mailing list