1======== 2Examples 3======== 4 5 6certgen.py -- Certificate generation module 7=========================================== 8 9Example module with three functions: 10 11createKeyPair 12 Create a public/private key pair. 13 14createCertRequest 15 Create a certificate request. 16 17createCertificate 18 Create a certificate given a cert request. 19 20In fact, I created the certificates and keys in the 'simple' directory with the script ``mk_simple_certs.py``. 21 22 23simple -- Simple client/server example 24====================================== 25 26Start the server with:: 27 28 python server.py PORT 29 30and start clients with:: 31 32 python client.py HOST PORT 33 34The server is a simple echo server, anything a client sends, it sends back. 35 36 37proxy.py -- Example of an SSL-enabled proxy 38=========================================== 39 40The proxy example demonstrate how to use set_connect_state to start talking SSL over an already connected socket. 41 42Usage:: 43 44 python proxy.py server[:port] proxy[:port] 45 46Contributed by Mihai Ibanescu 47 48 49SecureXMLRPCServer.py -- SSL-enabled version of SimpleXMLRPCServer 50================================================================== 51 52Acts exactly like `SimpleXMLRPCServer <https://docs.python.org/3/library/xmlrpc.server.html>`_ from the Python standard library, but uses secure connections. 53The technique and classes should work for any SocketServer style server. 54However, the code has not been extensively tested. 55 56Contributed by Michal Wallace 57