[Twisted-Python] SSL and Perspective broker

Alex Couper amcouper at gmail.com
Tue Apr 17 09:56:15 MDT 2007


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<http://www.lothar.com/tech/papers/PyCon-2003/pb-pycon/pb.html>for
this example.

Alex Couper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20070417/7478c4aa/attachment.html>
-------------- 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/20070417/7478c4aa/attachment-0004.py>
-------------- 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/20070417/7478c4aa/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/20070417/7478c4aa/attachment-0002.obj>


More information about the Twisted-Python mailing list