SSL certificates can be valid for at most 199 days. By 15-03-2027 the limit becomes 99 days, for DigiCert certificates from 24-02-2027. Read more →

Post-quantum TLS on Windows Server

Hybrid key exchange with X25519MLKEM768 protects traffic against being collected now and decrypted later with a quantum computer. You enable it on Windows Server 2025, and the certificate does not need to be replaced for it.

PowerShell writes X25519_MLKEM768 and testssl.sh writes X25519MLKEM768. It is the same group. Windows calls the groups curves.

What your Windows Server can do

EditionTLS 1.3Hybrid key exchangeWhat you doNeeds restart
Windows Server 2012 R2 Source: Microsoft: Protocols in TLS/SSL (Schannel SSP) (opens in a new tab)No Source: Microsoft: Protocols in TLS/SSL (Schannel SSP) (opens in a new tab)No Source: Microsoft: Windows, TLS 1.3 and Post Quantum Crypto FAQ (opens in a new tab)Disable TLS 1.0 and 1.1 Source: Microsoft: TLS 1.0 and TLS 1.1 deprecation in Windows (opens in a new tab). Upgrade to Windows Server 2025 to use hybrid key exchange Source: Microsoft: Windows, TLS 1.3 and Post Quantum Crypto FAQ (opens in a new tab).Yes. The services use the change once they have been restarted Source: Microsoft: Transport Layer Security (TLS) registry settings (opens in a new tab).
Windows Server 2016 Source: Microsoft: Protocols in TLS/SSL (Schannel SSP) (opens in a new tab)No Source: Microsoft: Protocols in TLS/SSL (Schannel SSP) (opens in a new tab)No Source: Microsoft: Windows, TLS 1.3 and Post Quantum Crypto FAQ (opens in a new tab)Disable TLS 1.0 and 1.1 Source: Microsoft: TLS 1.0 and TLS 1.1 deprecation in Windows (opens in a new tab). Upgrade to Windows Server 2025 to use hybrid key exchange Source: Microsoft: Windows, TLS 1.3 and Post Quantum Crypto FAQ (opens in a new tab).Yes. The services use the change once they have been restarted Source: Microsoft: Transport Layer Security (TLS) registry settings (opens in a new tab).
Windows Server 2019 Source: Microsoft: Protocols in TLS/SSL (Schannel SSP) (opens in a new tab)No Source: Microsoft: Protocols in TLS/SSL (Schannel SSP) (opens in a new tab)No Source: Microsoft: Windows, TLS 1.3 and Post Quantum Crypto FAQ (opens in a new tab)Disable TLS 1.0 and 1.1 Source: Microsoft: TLS 1.0 and TLS 1.1 deprecation in Windows (opens in a new tab). Upgrade to Windows Server 2025 to use hybrid key exchange Source: Microsoft: Windows, TLS 1.3 and Post Quantum Crypto FAQ (opens in a new tab).Yes. The services use the change once they have been restarted Source: Microsoft: Transport Layer Security (TLS) registry settings (opens in a new tab).
Windows Server 2022 Source: Microsoft: Protocols in TLS/SSL (Schannel SSP) (opens in a new tab)Yes Source: Microsoft: Protocols in TLS/SSL (Schannel SSP) (opens in a new tab)No Source: Microsoft: Windows, TLS 1.3 and Post Quantum Crypto FAQ (opens in a new tab)Disable TLS 1.0 and 1.1 Source: Microsoft: TLS 1.0 and TLS 1.1 deprecation in Windows (opens in a new tab). Upgrade to Windows Server 2025 to use hybrid key exchange Source: Microsoft: Windows, TLS 1.3 and Post Quantum Crypto FAQ (opens in a new tab).Yes. The services use the change once they have been restarted Source: Microsoft: Transport Layer Security (TLS) registry settings (opens in a new tab).
Windows Server 2025 Source: Microsoft: Protocols in TLS/SSL (Schannel SSP) (opens in a new tab)Yes Source: Microsoft: Protocols in TLS/SSL (Schannel SSP) (opens in a new tab)Yes, with the Windows update KB5099536 Source: Microsoft: KB5099536 (OS Build 26100.33158) (opens in a new tab). Disabled by default Source: Microsoft: TLS Supported Groups in Windows 11 versions 24H2, Windows Server 2025, and later (opens in a new tab).Install KB5099536 and enable X25519_MLKEM768 Source: Microsoft: Windows, TLS 1.3 and Post Quantum Crypto FAQ (opens in a new tab). Disable TLS 1.0 and 1.1 Source: Microsoft: TLS 1.0 and TLS 1.1 deprecation in Windows (opens in a new tab).Yes, the whole server. The new order of groups applies after a restart Source: Microsoft: Manage Transport Layer Security (TLS) in Windows Server (opens in a new tab).

How to check

On the server, PowerShell shows which groups and cipher suites Schannel has enabled. The commands exist from Windows Server 2016:

PowerShell
# Key exchange groups, in priority order
Get-TlsEccCurve

# Cipher suites, in priority order
Get-TlsCipherSuite | Format-Table Name

If X25519_MLKEM768 is first in the list of groups, hybrid key exchange is enabled.

Test from outside with testssl.sh (opens in a new tab). Download the latest version, at least 3.2.4, from the releases on GitHub (opens in a new tab) and unpack it. testssl.sh runs in Bash on Linux, macOS and WSL.

Run the command from the unpacked directory and replace www.example.com with the hostname your clients use:

Bash
./testssl.sh --fs www.example.com

--fs limits the test to the key exchange. The hybrid group is listed under KEMs offered. This is the line for www.fairssl.dk:

 KEMs offered                 X25519MLKEM768 

Look for the hybrid group you enabled. None means the test found no hybrid group. You can also see the key exchange in Edge or Chrome, as the Microsoft FAQ (opens in a new tab) shows in Appendix A.

How to enable it on Windows Server 2025

  1. Install the Windows update KB5099536 (opens in a new tab) of 14-07-2026 or a later cumulative update. The OS build must be 26100.33158 or higher. winver shows it, and so does this command:
    PowerShell
    $cv = Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
    "$($cv.CurrentBuild).$($cv.UBR)"
  2. Run PowerShell as administrator and save the current settings so you can go back:
    PowerShell
    Get-TlsEccCurve | Out-File -NoClobber "$env:USERPROFILE\tls-groups-before.txt"
    (Get-TlsCipherSuite).Name | Out-File -NoClobber "$env:USERPROFILE\tls-ciphers-before.txt"
    reg export "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL" "$env:USERPROFILE\schannel-before.reg"
  3. Check whether a Group Policy (GPO) sets the groups. If the command returns a list, follow the box below instead of step 4:
    PowerShell
    Get-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Cryptography\Configuration\SSL\00010002' -Name EccCurves -ErrorAction SilentlyContinue
  4. Enable the hybrid group. -Position 0 puts it first in the list; without it the server may pick a classical group.
    PowerShell
    Enable-TlsEccCurve -Name "X25519_MLKEM768" -Position 0
  5. Restart the server. The new order applies after the restart.
  6. Test from outside with the command under How to check.

If a Group Policy (GPO) sets the groups

A GPO overrides what you set with PowerShell (the Microsoft FAQ (opens in a new tab)). If the order changes back after you have run Enable-TlsEccCurve, a GPO sets it.

Open that GPO and go to Computer Configuration > Administrative Templates > Network > SSL Configuration Settings > ECC Curve Order. Write X25519_MLKEM768 on the first line and keep the groups already listed, one per line. Run gpupdate /force on the server and continue with step 5.

The two other hybrid groups are called SecP256r1_MLKEM768 and SecP384r1_MLKEM1024 in Windows. You enable them the same way with -Position 1 and -Position 2.

Remove the old settings

Once hybrid key exchange works, you disable TLS 1.0 and 1.1, CBC ciphers and the groups X25519 and P-256. P-384 and P-521 stay as fallback for clients without hybrid key exchange.

UseWorks during a transitionRemove now (our interpretation)*Long recommended for removal
ProtocolTLS 1.3TLS 1.2 with ECDHE and AEAD–TLS 1.0, TLS 1.1, SSL 2, SSL 3
Key exchangeX25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024ECDHE P-384, P-521ECDHE X25519 or P-256 alone, DHERSA key transport (TLS_RSA_*), DHE 1024, static DH
CiphersAES-256-GCMAES-128-GCM, ChaCha20-Poly1305CBC ciphersRC4, 3DES, NULL, EXPORT, anonymous

* Possibly broken.

Test the clients first

A client that only supports TLS 1.0 or 1.1, CBC ciphers, or only X25519 and P-256 cannot connect after the clean-up. Take one step at a time: restart the server and test the applications and clients that use it. The lists also apply to the connections the server itself opens to other servers.

You can also disable protocols and ciphers with IIS Crypto, see the IIS Crypto guide. The commands for ciphers and groups exist from Windows Server 2016. Run PowerShell as administrator:

  1. Disable TLS 1.0 and 1.1 on the server side:
    PowerShell
    foreach ($protocol in 'TLS 1.0', 'TLS 1.1') {
        $key = "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\$protocol\Server"
        if (-not (Test-Path $key)) { New-Item -Path $key -Force | Out-Null }
        Set-ItemProperty -Path $key -Name 'Enabled' -Value 0 -Type DWord
    }
  2. See which CBC ciphers are enabled and disable them one at a time:
    PowerShell
    Get-TlsCipherSuite | Where-Object Name -like '*CBC*' | Format-Table Name
    
    # Repeat for each line of the list
    Disable-TlsCipherSuite -Name "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384"
  3. Enable P-521 at the end of the list, as fallback together with P-384. P-521 is not enabled by default in Windows:
    PowerShell
    Enable-TlsEccCurve -Name "nistP521" -Position 4294967295
  4. Disable X25519 and P-256. Write the two names exactly as Get-TlsEccCurve shows them, including upper and lower case:
    PowerShell
    Disable-TlsEccCurve -Name "curve25519"
    Disable-TlsEccCurve -Name "NistP256"
  5. Restart the server and test from outside and with your clients.

If a GPO sets the groups, change the list in ECC Curve Order instead of steps 3 and 4.

Undo

Disable the hybrid group again and restart the server:

PowerShell
Disable-TlsEccCurve -Name "X25519_MLKEM768"

If you cleaned up, these commands put groups and cipher suites back to the lists you saved before you changed anything. Restart the server afterwards:

PowerShell
# The groups back to the saved list
$saved = @(Get-Content "$env:USERPROFILE\tls-groups-before.txt" | ForEach-Object { $_.Trim() } | Where-Object { $_ })
Get-TlsEccCurve | Where-Object { $_ -notin $saved } | ForEach-Object { Disable-TlsEccCurve -Name $_ }
$now = @(Get-TlsEccCurve)
for ($i = 0; $i -lt $saved.Count; $i++) {
    if ($saved[$i] -notin $now) { Enable-TlsEccCurve -Name $saved[$i] -Position $i }
}

# The cipher suites back to the saved list
$saved = @(Get-Content "$env:USERPROFILE\tls-ciphers-before.txt" | ForEach-Object { $_.Trim() } | Where-Object { $_ })
$now = @((Get-TlsCipherSuite).Name)
for ($i = 0; $i -lt $saved.Count; $i++) {
    if ($saved[$i] -notin $now) { Enable-TlsCipherSuite -Name $saved[$i] -Position $i }
}

If TLS 1.0 and 1.1 were enabled before you cleaned up, you enable them again by removing the value Enabled. The file schannel-before.reg shows the settings from before:

PowerShell
foreach ($protocol in 'TLS 1.0', 'TLS 1.1') {
    Remove-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\$protocol\Server" -Name 'Enabled'
}
  • GPO: set ECC Curve Order back to the list it held before, run gpupdate /force and restart the server.
  • IIS Crypto: if you changed protocols and ciphers there, save a backup before you change anything and restore it to go back. The IIS Crypto guide shows how under Backup of active settings.

Applies to Schannel only

The settings apply to services that use Windows' own TLS: IIS, RDP, Exchange and others. Java and other software with its own TLS library follows the library's version and its own settings.

Key type in the ACME client

The key type of the certificate is chosen in the ACME client on each server. Based on what we know today, we recommend RSA 3072-bit keys, or ECC 384 if you need faster performance.

How to set the key type is described in the lego guide for Linux, the lego guide for macOS and the simple-acme guide for Windows.