Opened 2 years ago

Last modified 2 years ago

#6923 enhancement new

Deprecate outdated SSL context factories

Reported by: hynek Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:


Currently all TLS work happens within twisted.internet.ssl.CertificateOptions.

Unfortunately, if one comes to the module API docs of twisted.internet.ssl, one sees lot of “ContextFactories” which one shouldn’t use and the good one is hidden at the and with a rather unobvious name.

I’d like to deprecate at least:

  • ContextFactory
  • DefaultOpenSSLContextFactory
  • ClientContextFactory

If there’s more somewhere, please let me know.

Thoughts and opinions?

Change History (1)

comment:1 Changed 2 years ago by exarkun

I think this is a very good idea.

There is another context factory in twisted.mail.protocols but fortunately it is already deprecated.

Before deprecating these other context factories, we should switch all uses (and particularly documentation) of them inside Twisted to CertificateOptions.

Note: See TracTickets for help on using tickets.