After a successful handshake, https uses a symmetric key to communicate. When does the symmetric key expire?

how many times is the symmetric key used after https uses the symmetric key? What starts a new handshake to get a new key?

Sep.07,2021

this should have no expiration time, and there is no need to stipulate. If you really care about security, you can take the initiative to disconnect


is asymmetric encryption
at the appropriate time on the server side. OK, I was wrong. When shaking hands, asymmetric encryption, communication is symmetrical encryption.
https obtains the key of symmetric encryption based on the private key of asymmetric encryption after the handshake.
follow this line of thinking:
if I shake hands again, a new key will be generated.
conversely, as long as I don't shake hands again, the symmetrically encrypted key will not expire.
keepalive can reuse a TCP socket, within a certain period of time. In this case, the key expires

after this time.
Menu