cheroot.ssl.builtin
module¶
A library for integrating Python’s builtin ssl
library with Cheroot.
The ssl
module must be importable for SSL functionality.
To use this module, set HTTPServer.ssl_adapter
to an instance of
BuiltinSSLAdapter
.
-
class
cheroot.ssl.builtin.
BuiltinSSLAdapter
(certificate, private_key, certificate_chain=None, ciphers=None)¶ Bases:
cheroot.ssl.Adapter
Wrapper for integrating Python’s builtin
ssl
with Cheroot.-
CERT_KEY_TO_ENV
= {'issuer': 'I_DN', 'notAfter': 'V_END', 'notBefore': 'V_START', 'serialNumber': 'M_SERIAL', 'subject': 'S_DN', 'subjectAltName': 'SAN', 'version': 'M_VERSION'}¶
-
CERT_KEY_TO_LDAP_CODE
= {'commonName': 'CN', 'countryName': 'C', 'description': 'D', 'emailAddress': 'Email', 'givenName': 'G', 'initials': 'I', 'localityName': 'L', 'organizationName': 'O', 'organizationalUnitName': 'OU', 'stateOrProvinceName': 'ST', 'surname': 'S', 'title': 'T', 'userid': 'UID'}¶
-
bind
(sock)¶ Wrap and return the given socket.
-
certificate
= None¶ The file name of the server SSL certificate.
-
certificate_chain
= None¶ The file name of the certificate chain file.
-
ciphers
= None¶ The ciphers list of SSL.
-
property
context
¶ SSLContext
that will be used to wrap sockets.
-
get_environ
(sock)¶ Create WSGI environ entries to be merged into each request.
-
makefile
(sock, mode='r', bufsize=8192)¶ Return socket file object.
-
private_key
= None¶ The file name of the server’s private key file.
-
wrap
(sock)¶ Wrap and return the given socket, plus WSGI environ entries.
-