README 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. I've finally gotten around to writing some examples :-)
  2. They aren't many, but at least it's something. If you write any, feel free to
  3. send them to me and I will add themn.
  4. certgen.py - Certificate generation module
  5. ==========================================
  6. Example module with three functions:
  7. createKeyPair - Create a public/private key pair
  8. createCertRequest - Create a certificate request
  9. createCertificate - Create a certificate given a cert request
  10. In fact, I created the certificates and keys in the 'simple' directory with
  11. the script mk_simple_certs.py
  12. simple - Simple client/server example
  13. =====================================
  14. Start the server with
  15. python server.py PORT
  16. and start clients with
  17. python client.py HOST PORT
  18. The server is a simple echo server, anything a client sends, it sends back.
  19. proxy.py - Example of an SSL-enabled proxy
  20. ==========================================
  21. The proxy example demonstrate how to use set_connect_state to start
  22. talking SSL over an already connected socket.
  23. Usage: python proxy.py server[:port] proxy[:port]
  24. Contributed by Mihai Ibanescu
  25. SecureXMLRPCServer.py - SSL-enabled version of SimpleXMLRPCServer
  26. =================================================================
  27. This acts exactly like SimpleXMLRPCServer from the standard python library,
  28. but uses secure connections. The technique and classes should work for any
  29. SocketServer style server. However, the code has not been extensively tested.
  30. Contributed by Michal Wallace