[issue9706] ssl errors checking
Antoine Pitrou
report at bugs.python.org
Sun Aug 29 20:20:05 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> >>> 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.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9706>
_______________________________________
More information about the Python-bugs-list
mailing list