RFC 9973 lets TLS 1.3 add a shared secret as a quantum hedge

In short

Standards Track status, up from Experimental; 128 bits minimum size of the external PSK; 33 the extension's type value; 2 secrets that must both leak to break confidentiality (our count)

What changed

TLS is the protocol behind the padlock in a browser and behind many server-to-server links. TLS 1.3 gives a server two ways to prove who it is, and the RFC calls them "mutually exclusive". One is a certificate and a digital signature. The other is a PSK: a secret the two sides already hold. A PSK set up by an earlier handshake is a resumption PSK. One set up by any other means is an external PSK.

RFC 9973 defines an extension, named tls_cert_with_extern_psk, that allows both at once. The server still proves itself with a certificate. The external PSK goes into the key schedule, the chain of calculations that produces the session keys. The RFC also lifts a TLS 1.3 rule so that a server using a PSK can ask the client for a certificate too.

Why do quantum computers matter for secure connections?

Most TLS sessions agree a fresh key with an elliptic-curve or finite-field Diffie-Hellman exchange, written (EC)DHE in the RFC. The RFC says a CRQC could break those key agreement algorithms, and the signature algorithms used for authentication.

That matters because an eavesdropper can record encrypted traffic today and try to read it later. (The term "store now, decrypt later" is ours, not the RFC's.) With this extension, an attacker needs both the (EC)DHE shared secret and the external PSK. In the RFC's words, as long as the attacker does not know the PSK and the key derivation algorithm stays unbroken, the attacker cannot derive the session secrets even if they can compute the (EC)DH secret.

The RFC also says quantum-resistant public-key algorithms are becoming standards, but TLS 1.3 ciphersuites that use them will take many years to develop and deploy. In some environments a strong external PSK gives protection in the meantime.

The PSK does nothing for authentication. The RFC says that if a CRQC is invented, the certificate signature algorithm "will need to be replaced with a quantum-resistant one", and that a PSK must never be the only basis for authentication.

How the handshake changes

ClientHello: The client sends the new extension, with the extensions the RFC says must accompany it: key_share, supported_groups, psk_key_exchange_modes and pre_shared_key. It must not send early_data alongside, and a server that sees both must end the connection. ServerHello: If the server holds one of the offered external PSKs and agrees, it includes the extension in its reply. If none is acceptable, it leaves the extension out. Key schedule: The Early Secret, Handshake Secret and Main Secret all depend on the external PSK. If the two sides hold different values for the same PSK identity, they compute different keys and the client aborts with a decrypt_error alert. Authentication: The server sends its Certificate and CertificateVerify messages as usual, and may request the client's. Authentication is not changed by the PSK.

The extension itself carries no data in either hello message: the RFC calls it "essentially a flag". Clients must include the psk_dhe_ke key exchange mode, and the server must pick it for the first handshake, so the (EC)DHE exchange still happens. The RFC adds that every external PSK is tied to one hash algorithm, with SHA-256 the default.

What the RFC says to be careful about

Other cautions in the security section:

From experiment to standard

Appendix A says the change from Experimental to Standards Track is the most significant one. Other changes include:

A second motivation in the RFC is unrelated to quantum computers: enrolling a device in an enterprise network, using a public key together with a factory-provisioned secret value.

Terms in plain English

Where things stand

The RFC is a published Standards Track document. It says the quantum motivation concerns a computer that may never exist. We have not seen implementation or deployment reports, so we do not know which TLS libraries or products support it.

Sources

Sources

Related stories

More from Wi-Fi Wizards

All stories from Wi-Fi Wizards