All organizations must move to TLS 1.3 to support post-quantum cryptography (PQC) for network data. In this post we explore how TLS 1.3 supports PQC and how you can support hybrid TLS 1.3 using ASP.NET and the Kestrel HTTP server on Windows TODAY!
IMPORTANT
Before I get to the body of this post, there is an important update you must be aware of:
My colleague, Aabha Thipsay from Windows Security has published an update to her June post on PQC in Windows. Hybrid TLS using ML-KEM key exchange groups is now generally available (GA) in Windows 11 and Windows Server 2025. This allows TLS connections to combine classical and post-quantum key establishment mechanisms, providing cryptographic agility and protection against future quantum-enabled attacks.
Read more, including the update details here.
Introduction
All organizations must move to TLS 1.3 to support post-quantum cryptography (PQC) for network data.
Prior versions of TLS, such as 1.0, 1.1 and 1.2 DO NOT support and WILL NOT support PQC. TLS 1.0 and 1.1 are already deprecated, and 1.2 will eventually go the same fate, too.
Also note that TLS 1.0 and 1.1 are officially deprecated by the IETF via RFC 8996.
The security technology most used to protect (encryption and integrity checks) data on the wire is TLS, which is so pervasive that almost nothing else is used to authenticate servers (and optionally authenticate clients) and then provide encryption and integrity protection for network traffic.
To be honest, in a distant 2nd lies SSH.
The beauty of TLS is that it supports crypto-agility (see my previous post here) by design by allowing a server and client to negotiate to a mutually agreed-upon ciphersuite.
Note that this blog post focuses on Windows, I will write a follow-up post about Linux, OpenSSL, and nginx.
If you are happy with that level of detail, and you don’t need to understand how TLS supports PQC and crypto-agility, then jump straight to the section below titled ‘ASP.NET and Kestrel’ where I explain using hybrid TLS 1.3 with ASP.NET and the Kestrel web server.
From here on, all references to TLS are TLS 1.3 and later.
TLS 1.3 and Crypto-Agility
The diagram and text below explain how TLS negotiates to a mutually agreed-upon ciphersuite and hence supports crypto-agility.
The client (such as a web browser) sends a list of its supported ciphersuites in a ClientHello message to the server which is the first message sent by the client during a TLS negotiation.
The server selects which ciphersuite to use and that is sent back in the ServerHello message.
Here both the client and server list contain TLS_AES_256_GCM_SHA384, and since it sits at the top of the server's list, the server selects it even though TLS_AES_128_GCM_SHA256 was first in the client list.
Note that RFC 8446 “The Transport Layer Security (TLS) Protocol Version 1.3” §4.1.1 leaves the selection algorithm to the server. The client's list order is a hint, but most production servers ignore it and walk their own preference list top-down - picking the first entry that also appears in the client's offering.
If there were zero overlap between the client and server ciphersuite lists, the server would usually send a handshake_failure alert (40) and tear down the connection.
Important sidenote about TLS 1.3 ciphersuite strings
TLS 1.3 cleaned up the ciphersuite strings substantially from prior versions. In TLS 1.2 and earlier, a single ciphersuite name bundled together multiple concerns: the key exchange algorithm, the authentication algorithm, the bulk encryption algorithm, and the hash or message authentication function. That made the names more difficult to reason about and more rigid.
TLS 1.3 simplified this model by reducing the ciphersuite to just the symmetric encryption and hash components, such as TLS_AES_256_GCM_SHA384.
TLS 1.3, ciphersuites, groups and PQC
TLS key exchange, establishment or agreement is negotiated separately through the supported_groups and key_share TLS extensions, and authentication is handled through the signature_algorithms TLS extension.
This separation is important because it makes the protocol easier to evolve, new key exchange mechanisms can be introduced, including post-quantum or hybrid key establishment methods, without having to redefine the entire ciphersuite structure.
Important
From a PQC perspective, the ciphersuites used by TLS 1.3 are largely unchanged, it's the supported groups we care about most.
In TLS 1.3, the ClientHello message uses supported_groups, key_share and signature_algorithms extensions to add PQC algorithms. I want to keep this simplified so the post doesn’t become a treatise on TLS 1.3, so I will elide many details!
When using hybrid (ie; PQC + classic crypto) the supported_groups and key_share data structures might look something like this:
The supported_groups order is a preference, highest first, and most commonly today, hybrids (PQC + classical) are at the top, then classic groups below as a fallback for servers that don't yet speak PQC. As an optimization, the client also sends a key_share for its top choice in the same ClientHello — the actual ephemeral public keys — so that if the server accepts that group, the handshake completes in one round trip rather than triggering a HelloRetryRequest and a second one.
In this example, the client is saying "I'd really like to use hybrid crypto, but I'll downgrade to plain X25519 or secp256r1 if you can't." And it doesn't just say it - and as an optimization, the client sends a key_share, pre-generating and attaching the ephemeral public keys for its top pick (X25519MLKEM768) so the handshake can finish in one round trip if the server agrees. The fallback groups are listed but not pre-computed, so falling back to one of them costs an extra round trip.
The key_share sizes in the diagram show the hybrid is just two key exchanges glued together: the client's 1216-byte share is a 32-byte X25519 public key plus a 1184-byte ML-KEM-768 key. The server's reply is a slightly different size because the ML-KEM half returns a ciphertext rather than a matching public key.
It is up to the server to determine what algorithms to use, however. We know what the client can support, because the client told us in the ClientHello message.
As a side note, the word "group" isn't arbitrary - it comes from the underlying algebra (elliptic-curve groups, finite-field multiplicative groups). It's mathematically precise; but it's just opaque to anyone who isn't thinking about group theory! However, ML-KEM isn't built on a group at all - its hardness comes, in part, from lattices, but let’s not go down that rabbit hole!
Now let’s switch to why we are here – ASP.NET, Kestrel and PQC.
ASP.NET and Kestrel
ASP.NET is Microsoft's open-source web framework for building web apps, APIs, and real-time services on .NET.
Kestrel is the cross-platform, high-performance HTTP[S] server built into .NET that handles raw TCP connections and HTTP protocol processing.
ASP.NET and Kestrel relate in that Kestrel is the default in-process web server that listens for and handles HTTP requests for an ASP.NET.
Below is some minimal C# Kestrel code that listens for HTTPS connections:
using System.Net;
using Microsoft.AspNetCore.Connections.Features;
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureKestrel(o => o.ListenAnyIP(8443, l => l.UseHttps()));
var app = builder.Build();
app.MapGet("/", (HttpContext ctx) =>
{
var tls = ctx.Features.Get<ITlsHandshakeFeature>();
return Results.Json(new
{
Timestamp = DateTime.UtcNow,
Protocol = tls?.Protocol.ToString() ?? "Unknown",
CipherSuite = tls?.NegotiatedCipherSuite?.ToString() ?? "Unknown"
});
});
app.Run();
This code is correctly written because it makes no assertions about TLS protocol version, nor ciphersuites, nor groups. Rather, these settings are made outside the application is some form of configuration.
The anti-pattern to the code above is this:
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureKestrel(o => o.ListenAnyIP(8443, l => l.UseHttps(h =>
{
h.SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls13;
h.OnAuthenticate = (_, sslOptions) =>
{
sslOptions.CipherSuitesPolicy = new CipherSuitesPolicy(new[]
{
TlsCipherSuite.TLS_AES_256_GCM_SHA384,
TlsCipherSuite.TLS_AES_128_GCM_SHA256,
TlsCipherSuite.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
});
};
})));
var app = builder.Build();
This code is NOT crypto-agile and should be considered an anti-pattern because it embeds cryptographic details like TLS protocol versions and ciphersuites in the code, and if any of these must change in the future then the code needs updating, too. This code will not necessarily negotiate to a PQC connection.
Note: CipherSuitesPolicy is Linux-only. On Windows/macOS the constructor throws PlatformNotSupportedException - ciphersuites on those platforms are governed by the OS (SChannel on Windows). The TLS protocol restriction works cross-platform, however.
And that is a nice segue to SChannel!
Schannel Configuration on Windows
Windows uses a component named schannel.dll to perform TLS communication. Today, July 14th, 2026, schannel is GA with PQC support, see the note about Aabha's update on the topic.
Even though this version supports TLS hybrid groups today, the PQC groups are not enabled by default, so you must set them up.
Setting up Schannel
There are three main ways to configure schannel:
- Modify the Registry directly
- Use Group Policy
- Use PowerShell cmdlets
We will focus on (3), but ultimately, all methods directly or indirectly update the Registry.
Use the following site as a reference for the various PowerShell TLS cmdlets.
Get-TlsCipherSuite dumps all the supported ciphersuites irrespective of TLS protocol version. You can disable a ciphersuite using Disable-TlsCipherSuite.
What we’re interested in is setting up a group for PQC, and for that we use:
Enable-TlsEccCurve -Name "X25519_MLKEM768" -Position 0
The -position option is important as it places the hybrid group at the top of the preferred group list. If you do not do this, you might not negotiate to the hybrid PQC group.
You can use Get-TlsEccCurve to verify the setting, as noted below:
x25519_mlkem768
curve25519
NistP256
NistP384
Now that we have set the group, we can run the server code and connect with a browser such as Edge or Chrome. When you do this, you can see the connection details under Developer Tools à Security.
This shows the protocol version (TLS 1.3), the group (X25519MLKEM768) and the ciphersuite (AES_256_GCM).
Congratulations, you just connected to Kestrel or ASP.NET using a quantum resilient group! You are officially living in the future!
You can also use OpenSSL as a client to determine the group:
openssl s_client -connect 127.0.0.1:8443 -tls1_3 -brief
Connecting to 127.0.0.1
depth=0 CN=localhost
CONNECTION ESTABLISHED
Protocol version: TLSv1.3
Ciphersuite: TLS_AES_256_GCM_SHA384
Peer certificate: CN=localhost
Hash used: SHA256
Signature type: rsa_pss_rsae_sha256
Negotiated TLS1.3 group: X25519MLKEM768
A note about server authentication
It’s important I bring this up. The key negotiation process used post-quantum cryptography, but the server authentication used a classic certificate. That's by design for now: the immediate goal is encrypting data on the wire to defend against harvest-now, decrypt-later attacks, where an adversary records traffic today hoping to decrypt it once quantum computers mature. Authentication is a different threat model - an attacker would need a quantum computer during the live session to forge the certificate, not years later. So, protecting confidentiality first, with PQC key exchange, addresses the more urgent risk while the ecosystem catches up on PQC certificates and CA migration.
Wrap-up
Post-quantum TLS 1.3 is no longer theoretical — you can experiment with it on Windows today. By moving your services to TLS 1.3, avoiding hard-coded cryptographic choices in application code, and letting SChannel negotiate hybrid groups such as X25519MLKEM768, you can start validating how ASP.NET and Kestrel behave in a quantum-resilient configuration. If you build or operate services on Windows, now is the time to get the latest Windows Insider or preview build, enable the hybrid TLS group, run your Kestrel workloads, and inspect the negotiated connection. The best way to prepare for post-quantum cryptography is to start testing it now.
Thanks
As usual, a big thanks to all the people who reviewed the drafts of this post and provided valuable input and feedback.
Aabha Thipsay - Windows Security
Jessica Krynitsky - Windows Security
Andrei Popov - Window Security
Barry Dorrans - .NET Security
Jeremy Barton - .NET Security
Raul Garcia – Microsoft Crypto Board
Published Jul 14, 2026
Version 1.0MichaelHoward-MSFT
Microsoft
Joined January 30, 2019
Post Quantum Crypto Tech Blog
Practical, Technical Microsoft and Azure Post Quantum Cryptography Information