crossbar.common.twisted.tlsctx¶
Attributes¶
Classes¶
A context factory for SSL clients. |
|
TLS context factory for use with Twisted. |
Module Contents¶
- SSL_DEFAULT_CIPHERS = 'ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA...[source]¶
- class TlsClientContextFactory[source]¶
Bases:
twisted.internet.ssl.ClientContextFactoryA context factory for SSL clients.
- class TlsServerContextFactory(privateKeyString, certificateString, chainedCertificate=True, dhParamFilename=None, ciphers=None, ca_certs=[])[source]¶
Bases:
twisted.internet.ssl.DefaultOpenSSLContextFactoryTLS context factory for use with Twisted.
Like the default
but loads key/cert from string, not file and supports chained certificates.
See also
http://pyopenssl.sourceforge.net/pyOpenSSL.html/openssl-context.html http://www.openssl.org/docs/ssl/SSL_CTX_use_certificate.html
- Chained certificates:
The certificates must be in PEM format and must be sorted starting with the subject’s certificate (actual client or server certificate), followed by intermediate CA certificates if applicable, and ending at the highest level (root) CA.
- Hardening:
http://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/ https://www.ssllabs.com/ssltest/analyze.html?d=www.example.com