- Home
- RFC 9973
RFC 9973: TLS 1.3 Extension for Using Certificates with an External Pre-Shared Key
- R. Housley
Abstract
This document specifies a TLS 1.3 extension that allows TLS clients and servers to authenticate with certificates and provide confidentiality based on encryption with a symmetric key from the usual key agreement algorithm and an external pre-shared key (PSK). This Standards Track RFC obsoletes RFC 8773, which was an Experimental RFC.¶
Status of This Memo
This is an Internet Standards Track document.¶
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.¶
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
https://
Copyright Notice
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(https://
1. Introduction
The TLS 1.3 [RFC9846] handshake protocol provides two mutually exclusive forms of server authentication. First, the server can be authenticated by providing a signature certificate and creating a valid digital signature to demonstrate that it possesses the corresponding private key. Second, the server can be authenticated by demonstrating that it possesses a pre-shared key (PSK) that was established by a previous handshake. A PSK that is established in this fashion is called a resumption PSK. A PSK that is established by any other means is called an external PSK.¶
A TLS 1.3 server that is authenticating with a certificate may optionally request a certificate from the TLS 1.3 client for authentication, as described in Section 4.3.2 of [RFC9846].¶
This document specifies a TLS 1.3 extension permitting
certificate
Please see Appendix A for a list of changes since the publication of [RFC8773].¶
2. Requirements Language
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
3. Motivation and Design Rationale
There are two motivations for using a certificate with an external PSK.¶
One motivation is confidentiality protection against the future invention of a
Cryptographical
The term "strong external PSK" is used to mean that the PSK that has
been generated and distributed in such a way that the invention of a CRQC
will not allow the owner of that quantum computer to learn the PSK. While
generation and distribution of the PSK are outside the scope of this document,
in the context of a CRQC, security of the TLS 1.3 session using the
strong external PSK relies on and is implicitly tied to the confidentiality
When a certificate is used for authentication, the authentication is provided by the existing certificate and digital signature mechanisms. This authentication cannot be relied upon if a CRQC is ever invented. The addition of a strong external PSK in the TLS 1.3 key schedule does not offer improvement against the long-term quantum computing threat regarding authentication.¶
Likewise, a raw public key can be provided, as described in [RFC7250].¶
Quantum
Another motivation is the use of a public key with a factory
4. Extension Overview
This section provides a brief overview of the "tls_
The client includes the "tls_
If the client includes both the "tls_
If the server is willing to use one of the external PSKs listed in the
"pre_
When the "tls_
The authentication of the server and optional authentication of
the client depend upon the ability to generate a signature that
can be validated with the public key in their certificates. The
authentication processing is not changed in any way by the
selected external PSK. As a result, if a CRQC is ever invented,
the digital signature algorithm will need to be replaced with a
quantum
Each external PSK is associated with a single hash algorithm, which is required by Section 4.2.11 of [RFC9846]. The hash algorithm MUST be set when the PSK is established, with a default of SHA-256.¶
5. Certificate with External PSK Extension
This section specifies the "tls_
The general extension mechanisms enable clients and servers to negotiate the
use of specific extensions. Clients request extended functionality from
servers with the extensions field in the ClientHello message. If the server
responds with a Hello
Many server extensions are carried in the Encrypted
The Extension structure is defined in [RFC9846]; it is repeated here for convenience.¶
struct {
ExtensionType extension_type;
opaque extension_data<0..2^16-1>;
} Extension;
The "extension_
This document specifies the "tls_
enum {
tls_cert_with_extern_psk(33), (65535)
} ExtensionType;
The "tls_
struct {
select (Handshake.msg_type) {
case client_hello: Empty;
case server_hello: Empty;
};
} CertWithExternPSK;
5.1. Companion Extensions
Section 4 lists the extensions that are required to accompany
the "tls_
The "psk_
The "pre_
struct {
opaque identity<1..2^16-1>;
uint32 obfuscated_ticket_age;
} PskIdentity;
opaque PskBinderEntry<32..255>;
struct {
PskIdentity identities<7..2^16-1>;
PskBinderEntry binders<33..2^16-1>;
} OfferedPsks;
struct {
select (Handshake.msg_type) {
case client_hello: OfferedPsks;
case server_hello: uint16 selected_identity;
};
} PreSharedKeyExtension;
"OfferedPsks" contains the list of PSK identities and associated binders for the external PSKs that the client is willing to use with the server.¶
The identities are a list of external PSK identities that the client is willing to negotiate with the server. Each external PSK has an associated identity that is known to the client and the server; the associated identities may be known to other parties as well. In addition, the binder validation (see below) confirms that the client and server have the same key associated with the identity.¶
The "obfuscated_
The binders are a series of HMAC [RFC2104]
values, one for each external PSK offered by the client, in the same order
as the identities list. The HMAC value is computed using the binder_
The "selected_
5.2. Authentication
When the "tls_
TLS 1.3 does not permit the server to send a Certificate
5.3. Keying Material
Section 7.1 of [RFC9846]
specifies the TLS 1.3 key schedule. The successful negotiation of the
"tls_
If the client and the server have different values associated
with the selected external PSK identifier, then the client and
the server will compute different values for every entry in the
key schedule, which will lead to the client aborting the
handshake with a "decrypt_
6. IANA Considerations
IANA has updated the
"TLS ExtensionType Values" registry [IANA]
entry for the "tls_
7. Security Considerations
The Security Considerations in [RFC9846] remain relevant.¶
TLS 1.3 [RFC9846] does not permit
the server to send a Certificate
Implementations must protect the external PSK. Compromise of the external PSK will make the encrypted session content vulnerable to the future development of a CRQC. However, the generation, distribution, and management of the external PSKs is out of scope for this specification.¶
Implementers should not transmit the same content on a connection that is protected with an external PSK and a connection that is not. Doing so may allow an eavesdropper to correlate the connections, making the content vulnerable to the future invention of a CRQC.¶
Implementations must generate external PSKs with a secure key-management technique, such as pseudorandom generation of the key or derivation of the key from one or more other secure keys. The use of inadequate pseudorandom number generators (PRNGs) to generate external PSKs can result in little or no security. An attacker may find it much easier to reproduce the PRNG environment that produced the external PSKs and search the resulting small set of possibilities, rather than brute-force searching the whole key space. The generation of quality random numbers is difficult. [RFC4086] offers important guidance in this area.¶
Implementations must use a ciphersuite that includes a symmetric encryption algorithm with sufficiently large keys. For protection against the future invention of a CRQC, the symmetric key needs to be at least 128 bits. While Grover's algorithm (described in Section 3.1 of [RFC9958]) allows a quantum computer to perform a brute force key search using quadratically fewer steps than would be required with classical computers, there are a number of mitigating factors suggesting that Grover's algorithm will not speed up a brute force symmetric key search as dramatically as one might suspect. First, quantum computing hardware will likely be more expensive to build and use than classical hardware. Second, to obtain the full quadratic speedup, all the steps of Grover's algorithm must be performed in series. However, attacks on cryptography use massively parallel processing; the advantage of Grover's algorithm will be smaller.¶
Implementations must use sufficiently large external PSKs. For protection against the future invention of a CRQC, the external PSK needs to be at least 128 bits.¶
TLS 1.3 [RFC9846] has received careful security analysis, and the following informal reasoning shows that the addition of this extension does not introduce any security defects in the threat model of a traditional adversary, that is, an adversary that does not have access to a CRQC. This extension requires the use of certificates for authentication, but the processing of certificates is unchanged by this extension. This extension requires an external PSK in the key schedule as part of the computation of the Early Secret. In the initial handshake without an external PSK in [RFC9846], the Early Secret is computed as:¶
Early Secret = HKDF-Extract(0, 0)
With this extension, the Early Secret is computed as:¶
Early Secret = HKDF-Extract(0, External PSK)
Any entropy contributed by the external PSK can only make the Early Secret better; the external PSK cannot make it worse. Thus, TLS 1.3 continues to meet well-studied confidentiality goals when this extension is used.¶
Even when the external PSK is not known to any party other than the client and the server, the external PSK MUST NOT be the sole basis for authentication. The reasoning is explained in Section 4.2 of [K2016]. The authentication of the server and optional authentication of the client depend upon the ability to generate a signature that can be validated with the public key in their certificates. The authentication processing is not changed in any way by the selected external PSK.¶
This external PSK preserves some confidentiality and authentication even if the (EC)DH key agreement is broken by cryptanalysis or the future invention of a CRQC. As long as the attacker does not know the PSK and the key derivation algorithm remains unbroken, the attacker cannot derive the session secrets, even if the attacker is able to compute the (EC)DH shared secret. While the ephemeral (EC)DH private key used during a given TLS 1.3 session is destroyed before the end of a session, the (EC)DH private key would nevertheless be recoverable due to the break of the (EC)DH algorithm. However, a more general notion of "secrecy after key material is destroyed" would still be achievable using external PSKs, if they are managed in a way that ensures their destruction when they are no longer needed, and with the assumption that the symmetric algorithms remain safe against the invention of a CRQC.¶
The forward-secrecy advantages traditionally associated with ephemeral (EC)DH keys are not easily replaced by external PSKs. The confidentiality and authentication provided by the external PSK depend on whether the external PSK is used for more than one TLS 1.3 session and the parties that know the external PSK. Assuming the (EC)DH key agreement is broken:¶
- If the external PSK is used for a single TLS 1.3 session and it is known only by the client and server, then the usual TLS 1.3 confidentiality and authentication is provided, including the cryptographic separation between TLS 1.3 sessions. Of course, this places a significant burden on the generation and distribution of external PSKs.¶
- If the external PSK is used for more than one TLS 1.3 session and it is known only by the client and server, then the confidentiality is limited to the client and server, but there is no cryptographic separation between TLS 1.3 sessions.¶
- If the external PSK is used for more than one TLS 1.3 session and it is known by the client, server, and others, then the confidentiality is limited to the group that knows the external PSK, but there is no cryptographic separation between TLS 1.3 sessions.¶
This specification does not require that the external PSK is known only by the client and server. The external PSK may be known to a group. Since authentication depends on the public key in a certificate, knowledge of the external PSK by other parties does not enable impersonation. The authentication of the server and optional authentication of the client depend upon the ability to generate a signature that can be validated with the public key in their certificates. The authentication processing is not changed in any way by the selected external PSK.¶
Confidentiality depends on the shared secret from (EC)DH, so knowledge of the external PSK by other parties does not enable eavesdropping. However, group members can record the traffic of other members and then decrypt that traffic if they ever gain access to a CRQC. Also, when many parties know the external PSK, there are many opportunities for theft of the external PSK by an attacker. Once an attacker has the external PSK, if they ever gain access to a CRQC, they can decrypt stored traffic in the same manner as a legitimate group member.¶
TLS 1.3 key derivation makes use of the HMAC-based Key Derivation Function (HKDF) algorithm, which depends upon the HMAC [RFC2104] construction and a hash function. This extension provides the desired protection for the session secrets, as long as HMAC with the selected hash function is a pseudorandom function (PRF) [GGM1986].¶
TLS 1.3 [RFC9846] takes a conservative approach to PSKs; they are bound to a specific hash function and KDF. By contrast, TLS 1.2 [RFC5246] allows PSKs to be used with any hash function and the TLS 1.2 PRF. Thus, the safest approach is to use a PSK exclusively with TLS 1.2 or exclusively with TLS 1.3. Given one PSK, one can derive a PSK for exclusive use with TLS 1.2 and derive another PSK for exclusive use with TLS 1.3 using the mechanism specified in [RFC9258].¶
8. Privacy Considerations
Appendix F.6 of [RFC9846] discusses
identity
If an external PSK identity is used for multiple connections, then an
observer will generally be able track clients and/or servers across
connections. The rotation of the external PSK identity or the use of the
"encrypted_
This extension makes use of external PSKs to improve resilience against
attackers that gain access to a CRQC in the future and provides authentication
for initial enrollment of devices in an enterprise network. This extension is
always accompanied by the "pre_
9. References
9.1. Normative References
- [RFC2119]
-
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10
.17487 , , <https:///RFC2119 www >..rfc -editor .org /info /rfc2119 - [RFC7250]
-
Wouters, P., Ed., Tschofenig, H., Ed., Gilmore, J., Weiler, S., and T. Kivinen, "Using Raw Public Keys in Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS)", RFC 7250, DOI 10
.17487 , , <https:///RFC7250 www >..rfc -editor .org /info /rfc7250 - [RFC8174]
-
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10
.17487 , , <https:///RFC8174 www >..rfc -editor .org /info /rfc8174 - [RFC9846]
-
Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 9846, DOI 10
.17487 , , <https:///RFC9846 www >..rfc -editor .org /info /rfc9846
9.2. Informative References
- [Err7598]
-
RFC Errata, Erratum ID 7598, RFC 8773, <https://
www >..rfc -editor .org /errata /eid7598 - [Err8888]
-
RFC Errata, Erratum ID 8888, RFC 8773, <https://
www >..rfc -editor .org /errata /eid8888 - [GGM1986]
-
Goldreich, O., Goldwasser, S., and S. Micali, "How to construct random functions", Journal of the ACM (JACM), vol. 33, no. 4, pp. 792-807, DOI 10
.1145 , , <https:///6490 .6503 dl >..acm .org /doi /10 .1145 /6490 .6503 - [IANA]
-
IANA, "TLS ExtensionType Values", <https://
www >..iana .org /assignments /tls -extensiontype -values - [K2016]
-
Krawczyk, H., "A Unilateral
-to , Cryptology ePrint Archive, Paper 2016/711, , <https://-Mutual Authentication Compiler for Key Exchange (with Applications to Client Authentication in TLS 1.3)" eprint >..iacr .org /2016 /711 - [RFC2104]
-
Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed-Hashing for Message Authentication", RFC 2104, DOI 10
.17487 , , <https:///RFC2104 www >..rfc -editor .org /info /rfc2104 - [RFC4086]
-
Eastlake 3rd, D., Schiller, J., and S. Crocker, "Randomness Requirements for Security", BCP 106, RFC 4086, DOI 10
.17487 , , <https:///RFC4086 www >..rfc -editor .org /info /rfc4086 - [RFC5246]
-
Dierks, T. and E. Rescorla, "The Transport Layer Security (TLS) Protocol Version 1.2", RFC 5246, DOI 10
.17487 , , <https:///RFC5246 www >..rfc -editor .org /info /rfc5246 - [RFC8773]
-
Housley, R., "TLS 1.3 Extension for Certificate
-Based Authentication with an External Pre-Shared Key" , RFC 8773, DOI 10.17487 , , <https:///RFC8773 www >..rfc -editor .org /info /rfc8773 - [RFC9258]
-
Benjamin, D. and C. A. Wood, "Importing External Pre-Shared Keys (PSKs) for TLS 1.3", RFC 9258, DOI 10
.17487 , , <https:///RFC9258 www >..rfc -editor .org /info /rfc9258 - [RFC9849]
-
Rescorla, E., Oku, K., Sullivan, N., and C. A. Wood, "TLS Encrypted Client Hello", RFC 9849, DOI 10
.17487 , , <https:///RFC9849 www >..rfc -editor .org /info /rfc9849 - [RFC9958]
-
Banerjee, A., Reddy.K, T., Schoinianakis, D., Hollebeek, T., and M. Ounsworth, "Post-Quantum Cryptography for Engineers", RFC 9958, DOI 10
.17487 , , <https:///RFC9958 www >..rfc -editor .org /info /rfc9958 - [RFC9966]
-
Friel, O. and D. Harkins, "Bootstrapped TLS Authentication with Proof of Knowledge", RFC 9966, DOI 10
.17487 , , <https:///RFC9966 www >..rfc -editor .org /info /rfc9966
Appendix A. Changes Since RFC 8773
The status elevation from Experimental RFC to Standards Track RFC is the most significant change in this document.¶
In addition to minor editorial updates, which include a change to the title, the following changes were made:¶
- Correct the order of the arguments to HKDF-Extract when an external PSK is present [Err8888].¶
-
The client must include the "supported_
groups" extension in the ClientHello message.¶ - Expand the motivation discussion to talk about protection against the future development of a CRQC and enrollment in enterprise networks.¶
- Separate the discussion of confidentiality and authentication. The inclusion of the external PSK offers some confidentiality protection against the future invention of a CRQC, but the external PSK does not improve authentication.¶
- Correct RFC Erratum 7598 [Err7598].¶
- Add a discussion of TLS Encrypted Client Hello to the Privacy Considerations section.¶
- Adopt terminology that has become widely accepted, such as CRQC and Main Secret (instead of Master Secret).¶
- Provide URLs for all references.¶
Acknowledgments
Many thanks to
Liliya Akhmetzyanova,
Roman Danyliw,
Christian Huitema,
Ben Kaduk,
Geoffrey Keating,
Hugo Krawczyk,
Mirja Kühlewind,
Nikos Mavrogiannopoul
Many thanks to Mike Bishop, Deb Cooley, Owen Friel, Britta Hale, Dan Harkins, Christian Huitema, Joe Mandel, John Preuß Mattsson, Eric Rescorla, Joe Salowey, Muhammad Usama Sardar, Paul Wouters, and Peter Yee for their review and comments on the updates to RFC 8773 that became this document; their efforts have improved the document.¶