Opened 8 years ago

Last modified 5 years ago

#6923 enhancement new

Deprecate outdated SSL context factories

Reported by: Hynek Schlawack Owned by: Cory Benfield
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 (3)

comment:1 Changed 8 years ago by Jean-Paul Calderone

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.

comment:2 Changed 5 years ago by Cory Benfield

Owner: set to Cory Benfield

comment:3 Changed 5 years ago by Adi Roiban

Ticket for removing twisted.mail in #8591

Note: See TracTickets for help on using tickets.