Skip to main content
← SproulTech

Harvest now, decrypt later: does recorded RSA traffic matter?

It matters only for sessions that used RSA key exchange, because anyone holding a recording could decrypt it once they can recover the server's RSA private key. TLS 1.3 removed RSA key exchange, so TLS 1.3 sessions are not exposed that way. ECDHE sessions are safe against a factoring break, but not against a quantum computer; ML-KEM hybrid addresses that.

By Nate Sproul, software engineer · Updated December 1, 2026

What is harvest now, decrypt later?

An attacker records encrypted traffic today and decrypts it later, when the cryptography protecting it has weakened. Cloudflare's post-quantum documentation describes it as guarding against an adversary who collects encrypted traffic now and decrypts it once a sufficiently powerful quantum computer exists.

The question for an engineering team is which of your recorded sessions would be readable, and that depends on how each session agreed its key.

What is the difference between RSA key exchange and ECDHE?

With RSA key exchange (TLS 1.2 suites whose names start with TLS_RSA_), the client encrypts the session secret to the server's long-lived RSA public key. A recording of the handshake therefore contains the session secret, locked to that one key. Whoever later recovers the matching private key can unlock every recorded session that used it.

With ECDHE, client and server each make a fresh key pair for the handshake and derive the secret from the exchange. The long-lived RSA key is then only used to sign, to prove the server's identity, and it never encrypts the secret. RFC 8446 section 1.2 says that in TLS 1.3 "all public-key based key exchange mechanisms now provide forward secrecy".

Did TLS 1.3 remove RSA key exchange?

Yes. Section 1.2 of RFC 8446, the list of major differences from TLS 1.2, says: "Static RSA and Diffie-Hellman cipher suites have been removed". A connection that negotiated TLS 1.3 never used RSA key exchange. An RSA certificate can still sign a TLS 1.3 handshake; that is authentication, not key exchange.

What would a factoring break do to recorded sessions?

Suppose someone could factor RSA keys of the size you use. For recorded sessions that used RSA key exchange, the attacker could recover the server's private key from its public certificate and decrypt the recordings, including ones made years earlier. For recorded ECDHE sessions, the RSA key never encrypted the secret, so the recordings stay unreadable by this route. The RSA key would still matter for future impersonation, so it should be replaced either way.

What would a quantum break do to ECDHE sessions?

A large quantum computer is the case where ECDHE is exposed too, and this is the one Cloudflare's documentation addresses. Its answer is hybrid key agreement: X25519MLKEM768, TLS identifier 0x11ec, which Cloudflare says keeps X25519's current security and adds ML-KEM, the key agreement method NIST selected. See Cloudflare's post-quantum cryptography page.

Hybrid key agreement protects new sessions. It cannot help sessions already recorded without it, which is why the order of work is to turn it on at the edge first.

How do you check which cipher suites your server accepts?

Nmap's ssl-enum-ciphers script opens many connections, offers one cipher at a time, and reports the list of ciphersuites the server accepts. Run the documented form against a host you own:

  • nmap -sV --script ssl-enum-ciphers -p 443 yourhost.example
  • Look for suites whose names start with TLS_RSA_. Those use RSA key exchange. If none are listed, no RSA key exchange is accepted on that port.
  • Look for the protocol versions listed. TLS 1.3 suites cannot use RSA key exchange.
  • Repeat for every port that terminates TLS: load balancers, mail servers, internal services and any CDN origin.
  • To stop accepting them, remove the TLS_RSA_ suites from the server or load balancer configuration, then re-run the scan.
  • The script is intrusive and noisy, per its documentation, so run it only against systems you are allowed to scan.

What should you do first?

Turn off RSA key exchange where nothing needs it, move signatures and tokens off RSA, and turn on hybrid key agreement where your edge supports it. For the signature side, see RSA vs Ed25519 vs ML-DSA and How to replace RS256 JWTs. To find RSA in your own code, see How to find every RSA use in a JS/TS codebase. The whole plan is on the RSA exit page, and the method is shown in the crypto agility case study.

If you want the engineer who wrote this to do the swap in your code, the fix sprint is $2,500 per repo for up to 25 RSA call sites, plus $75 for each site after that. Details on the RSA exit page.

Questions

Does TLS 1.3 use RSA key exchange?
No. RFC 8446 section 1.2 says static RSA and Diffie-Hellman cipher suites have been removed. An RSA certificate can still be used to sign the handshake. (RFC 8446)
Is recorded ECDHE traffic safe from a quantum computer?
Not if a large enough quantum computer arrives and the session used classical ECDHE alone. Hybrid key agreement with ML-KEM (X25519MLKEM768) is the mitigation for new sessions. (Cloudflare)
What command lists the cipher suites a server accepts?
nmap -sV --script ssl-enum-ciphers -p 443 host, from the Nmap ssl-enum-ciphers documentation.

Send a few lines about which services terminate TLS for you and which clients connect. The reply comes from the engineer who would do the work.

nate@sproultech.com