[issue3823] ssl.wrap_socket() is incompatible with servers that drop privileges, due to keyfile requirement

Jean-Paul Calderone report at bugs.python.org
Wed Sep 10 23:08:11 CEST 2008


Jean-Paul Calderone <exarkun at divmod.com> added the comment:

You can load a private key from a string by creating a memory BIO and
using PEM_read_bio_PrivateKey or d2i_PrivateKey_bio.

This is how pyOpenSSL implements its load_privatekey API.  You can see
the code here:

http://bazaar.launchpad.net/~exarkun/pyopenssl/trunk/annotate/70?file_id=crypto.c-20080219014912-qyb7kjf196jhzlyv-128

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


More information about the Python-bugs-list mailing list