[Twisted-Python] dont get ssl Server working

Itamar Shtull-Trauring itamar at itamarst.org
Thu Aug 21 09:03:38 EDT 2008

On Thu, 2008-08-21 at 12:31 +0200, arne-weiss at web.de wrote:
> I tried to use ssl via twisted and I don't know why it doesn't work. If a client tries to connect ConnectionLost says:
> [('SSL routines', 'SSL3_READ_BYTES', 'sslv3 alert bad certificate'), ('SSL routines', 'SSL3_READ_BYTES', 'ssl handshake failure')]
> I tried different CAs, so there schould be no failure.
> Do I have to do something else like SSL.Context(method).set_accept_state() manually?
> My Code in basic looks like the following:
> http://nopaste.info/8bd9bd8536.html
> # class TLSProtocol(protocol.Protocol,  ssl.Server):

Don't inherit your class from ssl.Server, for starters.

More information about the Twisted-Python mailing list