Class t.p.a.StartTLS(Command):

Part of twisted.protocols.amp View Source View In Hierarchy

Use, or subclass, me to implement a command that starts TLS.

Callers of StartTLS may pass several special arguments, which affect the TLS negotiation: Each of those special parameters may also be present as a key in the response dictionary.
Method __init__ Create a StartTLS command. (This is private. Use AMP.callRemote.)
Method _doCommand When a StartTLS command is sent, prepare to start TLS, but don't actually

Inherited from Command:

Class __metaclass__ Metaclass hack to establish reverse-mappings for 'errors' and
Method makeResponse This is a hook which can be used to implement a custom factory
Method responder Declare a method to be a responder for a particular command.
def __init__(self, **kw): (source)
Create a StartTLS command. (This is private. Use AMP.callRemote.)
Parameterstls_localCertificatethe PrivateCertificate object to use to secure the connection. If it's None, or unspecified, an ephemeral DH key is used instead.
tls_verifyAuthoritiesa list of Certificate objects which represent root certificates to verify our peer with.
def _doCommand(self, proto): (source)
When a StartTLS command is sent, prepare to start TLS, but don't actually do it; wait for the acknowledgement, then initiate the TLS handshake.
API Documentation for twisted, generated by pydoctor.