Skip to content

Offer no session ticket on the default certificate path - #139

Closed
QuiteYellow wants to merge 1 commit into
mainfrom
fix/default-no-session-ticket
Closed

QuiteYellow wants to merge 1 commit into
mainfrom
fix/default-no-session-ticket

Conversation

@QuiteYellow

Copy link
Copy Markdown
Owner

PR #33 set OP_NO_TICKET for the server profile only. Its profile for the newer laundry certificate cohort disables session tickets, and it left the default CertificateAuth setup unchanged. This sets the same option on the default path, the port probe and the diagnostic.

The package never resumes a session, so the only change on the wire is the empty session_ticket extension going away. On OpenSSL 3.4.1, 4.0.1 and 4.0.3 the ClientHello goes from 160 to 156 bytes, with nothing else different.

This is a smaller version of #137 by @tabascoz, from #136, and they are co-author. It leaves out OP_NO_TLSv1_3, which does not change the DTLS ClientHello on those builds, and it keeps their updates to the existing tests.

Tests. test_default_certificate_client_hello_offers_no_session_ticket fails on main and passes here. The full suite passes on Python 3.11 and 3.14, and on the dependency floor.

Hardware. I ran the change in my bridge against my dryer and oven, which use the default path. Both reconnected, and six minutes of polling showed no errors or timeouts, the same as before the change.

BEHAVIOUR.md arrives with #129, so the line for this goes in after that merges.

PR #33 set OP_NO_TICKET for the server profile only. Its profile for the newer laundry certificate cohort disables session tickets, and it left the default CertificateAuth setup unchanged. The default path, the port probe and the diagnostic still offered an empty session_ticket extension. Each now sets OP_NO_TICKET after its cipher list.

This package never resumes a session, so the option changes only the ClientHello. On OpenSSL 3.4.1, 4.0.1 and 4.0.3 the extension is the only difference on the wire: the hello goes from 160 to 156 bytes.

The new test asserts that extension 35 is absent from the default ClientHello, and it fails without the change. The test-double and call-order updates come from #137.

Refs #136, #137.

Co-authored-by: Fernando Cunha <10350083+tabascoz@users.noreply.github.com>
Publish-Approved: 2026-11-20T12:45:00+00:00
@QuiteYellow

Copy link
Copy Markdown
Owner Author

Closing this in favour of #137. @tabascoz measured both on their fridge: #139 (the session-ticket extension only) failed, #137 recovered it. The difference is OP_NO_TLSv1_3, which I'd written off as a no-op. It is a no-op on the OpenSSL builds my bridge and CI run, but not on one that offers DTLS 1.3, where it removes a 1258-byte post-quantum key_share that fragments the ClientHello. #137 carries that option, so that's the one to take. Thanks for running it down on hardware I don't have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant