[Twisted-Python] SSL and Perspective Broker - 3rd attempt

Alex Couper amcouper at gmail.com
Wed Apr 18 10:08:33 MDT 2007


##Sorry about that, I had some rich text formatting in the first two messages:##

Attached are three files: a server, a client and a ssl certificate

Thanks to twisteds remote calls, I can successfully call functions on
the server from the client (or send objects if I need to).
Fantastic

  What I can't seem to do, is get the SSL to secure the server from a
non-authorised client (one that has access to stunnel.pem). So that if
the client does not have the correct certificate it cannot connect to
the server.

What am I doing wrong?

I have adapted some code found here for this example:
http://www.lothar.com/tech/papers/PyCon-2003/pb-pycon/pb.html#auto3

Alex Couper
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pb-client1.py
Type: text/x-python
Size: 2059 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20070418/899319f6/attachment-0004.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pb-server1.py
Type: text/x-python
Size: 1105 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20070418/899319f6/attachment-0005.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stunnel.pem
Type: application/octet-stream
Size: 1661 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20070418/899319f6/attachment-0002.obj>


More information about the Twisted-Python mailing list