nullptr
nullptr

Reputation: 660

How to specify SSL/TLS client extensions?

To my understanding a client can attach a list of desired tls extensions during the client handshake message. So how do I this in python? I didn't find anything related in the docu. I want to be able to pick any of the official ones but being able to use session resumption would be a great start.

Glad for any hints :o)

Upvotes: 2

Views: 1411

Answers (1)

frasertweedale
frasertweedale

Reputation: 5644

The standard library's ssl module does not expose options for controlling which TLS extensions are used.

PyOpenSSL does provide the OpenSSL.SSL.OP_NO_TICKET constant which can be used Context.set_options to disable the session resumption extension. (Presumably this means that it is enabled by default).

Upvotes: 1

Related Questions