class documentation

class twisted.protocols.amp._NoCertificate: (source)

View In Hierarchy

This is for peers which don't want to use a local certificate. Used by AMP because AMP's internal language is all about certificates and this duck-types in the appropriate place; this API isn't really stable though, so it's not exposed anywhere public.

For clients, it will use ephemeral DH keys, or whatever the default is for certificate-less clients in OpenSSL. For servers, it will generate a temporary self-signed certificate with garbage values in the DN and use that.

Method __init__ Create a _NoCertificate which either is or isn't for the client side of the connection.
Instance Variable client Undocumented
Method options Behaves like twisted.internet.ssl.PrivateCertificate.options().
def __init__(self, client): (source)

Create a _NoCertificate which either is or isn't for the client side of the connection.

ParametersclientTrue if we are a client and should truly have no certificate and be anonymous, False if we are a server and actually have to generate a temporary certificate. (type: bool)
client = (source)

Undocumented

def options(self, *authorities): (source)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.