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 pitrou
Recipients exarkun, giampaolo.rodola, janssen, pitrou
Date 2010-08-29.18:20:01
SpamBayes Score 1.925741e-05
Marked as misclassified No
Message-id <1283105999.3369.16.camel@localhost.localdomain>
In-reply-to <1283105470.14.0.471653191077.issue9706@psf.upfronthosting.co.za>
Content
> >>> ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
> >>> ctx.wrap_socket(socket.socket(), server_side=1)
> <ssl.SSLSocket object, fd=3, family=2, type=1, proto=0>
> >>> 
> 
> I'm not sure how to raise ValueError("certfile must be specified")
> here as SSLContext class doesn't store certfile information, at least
> at Python level. Any hint?

Actually, you shouldn't raise the error, since the certfile can be
specified after wrapping the socket.
History
Date User Action Args
2010-08-29 18:20:05pitrousetrecipients: + pitrou, exarkun, janssen, giampaolo.rodola
2010-08-29 18:20:02pitroulinkissue9706 messages
2010-08-29 18:20:01pitroucreate