Set up an SSL socket in Python with self signed certificates - ral-facilities/gridftp_acl_plugin GitHub Wiki
Shows how to wrap a Python (3.6) socket with a SSL socket. Demonstrates how to generate self-signed certificates. Provides working code for a client and server.