-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postfix issues TLS tickets only every second time #456
Comments
Why is postfix only emitting a ticket every second time an issue? |
Because session resumption does not work every second time. |
In Postfix 3.8.6 file
While it is possible to reuse TLS session tickets, Rustls never reuses them.
So TLS 1.3 concern here is that passive observer can see the same ticket in plaintext and conclude that it's the same client. While may be considered a minor issue and Rustls can get an option to ignore RFC recommendation, I don't think it should be done and don't want to consider all the implications of e.g. clients using Tor and passive eavesdropper monitoring exit node traffic being able to tell that two connections belong to the same client. Postfix should be fixed to produce tickets in any case as TLS 1.3 specification says it SHOULD. Issuing tickets is cheap, tickets are small and fixed size, it's just an AES state, no asymmetric crypto is involved, see e.g. https://www.rfc-editor.org/rfc/rfc5077#section-4. |
For example, if you run
openssl s_client -connect staging.testrun.org:465 -tls1_3 -sess_out sess.pem
, command output containsNew, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
(new session is established) andPost-Handshake New Session Ticket arrived:
(new ticket is issued by the server).Then if you run
openssl s_client -connect c2.testrun.org:465 -tls1_3 -sess_in sess.pem
, you getReused, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
(reused session) and no new ticket.In contrast,
smtp.gmail.com:465
issues two tickets every time, regardless of whether you used existing session or not.I did not find Postfix options to change this behaviour. Maybe there is something in the postfix mailing list.
Detailed issue is at rustls/rustls#2204
The text was updated successfully, but these errors were encountered: