When crypto/tls autogenerates session ticket keys, it should also automatically rotate them (with some window of overlap) for forward secrecy.
Split from #19199
Let's do this, this is probably the biggest forward secrecy liability of a default crypto/tls server.
I am thinking of deprecating SessionTicketKey in favor of SetSessionTicketKeys, still randomizing it but not using it if it's zero and instead doing a periodic rotation, and of course still using it if set.
Change https://golang.org/cl/230679 mentions this issue: crypto/tls: rotate session ticket keys
Change https://golang.org/cl/231317 mentions this issue: crypto/tls: rotate session keys
This has been fixed.
Change https://golang.org/cl/235922 mentions this issue: crypto/tls: test that Clone copies session ticket key fields
Most helpful comment
This has been fixed.