t.i.i.I.startTLS(contextFactory) : method documentation

Part of twisted.internet.interfaces.ITLSTransport View Source

Initiate TLS negotiation.
ParameterscontextFactoryAn object which creates appropriately configured TLS connections.

For clients, use twisted.internet.ssl.optionsForClientTLS; for servers, use twisted.internet.ssl.CertificateOptions.

(type: IOpenSSLClientConnectionCreator or IOpenSSLServerConnectionCreator, depending on whether this ITLSTransport is a server or not. If the appropriate interface is not provided by the value given for contextFactory, it must be an old-style twisted.internet.ssl.ContextFactory or similar.)
API Documentation for Twisted, generated by pydoctor at 2015-01-30 14:14:53.