This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
adopt new Twisted TLS APIs #1691
Labels
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
The code in Synapse uses a subclass of
ssl.ContextFactory
with some manual OpenSSL setup.Twisted will do quite a lot of this for you (more every day!) and can handle several things that it looks like Synapse isn't doing right now, like service identity validation and sending server name indication.
The relevant APIs are:
twisted.internet.interfaces.IOpenSSLClientConnectionCreator
ortwisted.internet.interfaces.IOpenSSLServerConnectionCreator
rather than subclassingContextFactory
if you need to do your own thing.optionsForClientTLS
for clients, orCertificateOptions
(sorry - horrible class name there, I know) for servers, if the default behavior is good enough.The text was updated successfully, but these errors were encountered: