cheroot.ssl module

Implementation of the SSL adapter base interface.

class cheroot.ssl.Adapter(certificate, private_key, certificate_chain=None, ciphers=None)

Bases: object

Base class for SSL driver library adapters.

Required methods:

  • wrap(sock) -> (wrapped socket, ssl environ dict)
  • makefile(sock, mode='r', bufsize=DEFAULT_BUFFER_SIZE) -> socket file object

Wrap and return the given socket.


Return WSGI environ entries to be merged into each request.

makefile(sock, mode='r', bufsize=-1)

Return socket file object.


Wrap and return the given socket, plus WSGI environ entries.

Indices and tables