
Aug. 21, 2008
1:03 p.m.
On Thu, 2008-08-21 at 12:31 +0200, arne-weiss@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.