Forward Secrecy and Harvest-Now-Decrypt-Later
Forward secrecy means that compromising a long-term private key does not reveal past sessions. Each session's key is generated fresh and destroyed afterwards, so an attacker who obtains the server's key next year cannot decrypt the traffic they recorded this year. The problem it solves Older TLS used the server's RSA key directly for key transport: the client generated a session key, encrypted it with the server's public key, and sent it. Anyone holding the server's private key could decrypt that message and recover the session key. So an attacker recording traffic today and obtaining the private key later — through a breach, a subpoena, a departing administrator, or a flaw in the key's generation — could decrypt everything retroactively. One key compromise exposed years of sessions. Ephemeral key exchange removes that. The session key is derived through a fresh Diffie-Hellman exchange, the private values are discarded when the session ends, and the server...