This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author forest
Recipients exarkun, forest, hodgestar, janssen
Date 2008-09-10.21:02:36
SpamBayes Score 2.472078e-12
Marked as misclassified No
Message-id <1221080558.69.0.108075646854.issue3823@psf.upfronthosting.co.za>
In-reply-to
Content
Simon:  I wish I could offer guidance here, but I'm afraid that I too am
reading some of these openssl man pages for the first time.

I agree that writing to a temporary file would be bad.

Accepting file-like objects from python code would be nice, but isn't
really necessary.  Simple strings would suffice.  It's easy enough for
application code to read the strings from the appropriate files.  Of
course, the ssl module (or an underlying library) would need a way to
determine the data format within the strings.  Unfortunately, I didn't
notice an equivalent of SSL_CTX_use_PrivateKey_file() that accepts a
file's contents instead of its path.  SSL_CTX_use_RSAPrivateKey() looks
like the next best thing.

>much of the mechanism of a Certificate object is already there;
>perhaps adding an opaque Key object wouldn't be too bad."

That's encouraging.

From the openssl docs I've read so far, it looks like certificates and
keys have several formats and use patterns.  That seems to me like
another argument in favor of supporting separate Certificate and Key
objects, even if they're only minimally implemented to begin with.  In
other words, I don't imagine the presence of Certificate and Key objects
would muck up the ssl module's api.

In order to keep compatibility with socket.ssl, perhaps any new
certificate and key objects should be accepted as alternatives to the
existing certfile and keyfile args, but the latter should still be allowed?
History
Date User Action Args
2008-09-10 21:02:38forestsetrecipients: + forest, exarkun, janssen, hodgestar
2008-09-10 21:02:38forestsetmessageid: <1221080558.69.0.108075646854.issue3823@psf.upfronthosting.co.za>
2008-09-10 21:02:37forestlinkissue3823 messages
2008-09-10 21:02:36forestcreate