Create ITLSTransport.startTLS endpoint for the client, and normal SSL for server just because it's easier.

Method server Construct an SSL server endpoint. This should be constructing a TCP server endpoint which immediately calls startTLS instead, but that is hard.
Method client Construct a TCP client endpoint wrapped to immediately start TLS.

Inherited from ContextGeneratingMixin:

Method getServerContext Return a new SSL context suitable for use in a test server.
Method getClientContext Undocumented
def server(self, reactor):

Construct an SSL server endpoint. This should be constructing a TCP server endpoint which immediately calls startTLS instead, but that is hard.

def client(self, reactor, serverAddress):

Construct a TCP client endpoint wrapped to immediately start TLS.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.