Learn · Practitioner

OS & Platform Crypto PQC

5 sections

Migrate OS-level cryptography to post-quantum algorithms: system TLS policies, SSH host keys, package signing, and FIPS mode compatibility.

For you, every role: what this means
Developer / Engineer
Audit the OS crypto components, then configure system-wide TLS policy on RHEL, Ubuntu and Windows, migrate SSH host keys to ML-DSA-65 with the sshd_config changes, and move RPM and DEB signing from RSA-4096 to ML-DSA-65.
Security Architect
FIPS 140-3 module PQC inclusion and the hybrid FIPS design in Step 5 decide what the platform layer can offer applications; the audit in Step 1 is the inventory.
Researcher / Academic
The FIPS 140-3 PQC inclusion analysis and the package-signing migration are the two areas where distribution support is still moving; the module records the current state.
IT Ops / DevOps
System crypto-policies, sshd_config for ML-DSA host keys and package-signing keys are the three changes you roll out; Step 1's audit lists what each host runs today.

Modern operating systems rely on a layered cryptographic stack that spans from the kernel to user applications. Understanding where each layer sits is essential for a complete migration. OS-level policy affects the applications that use the relevant backend and accept its defaults. Check for bundled libraries and application overrides.

OS Cryptographic Stack (top to bottom)
Applications (curl, git, OpenSSH client)
System TLS Library (OpenSSL / GnuTLS / NSS)
OS Crypto Framework (CNG / Security.framework / OpenSSL)
SSH Daemon (sshd) + Package Manager
Linux Kernel CryptoAPI / Windows SymCrypt
Hardware: CPU AES-NI, RDRAND, TPM/HSM

PQC migration touches every layer. OpenSSL applies its system defaults when applications create a TLS context, and applications can override those settings. SSH host key migration requires new key types. Package signing requires coordinated infrastructure upgrades.

Harvest Now, Decrypt Later

System TLS traffic (HTTPS, API calls, database connections) and SSH sessions can be recorded today and decrypted later if their key exchange is classical-only. Every TLS 1.3 session using only classical key exchange is a potential HNDL target. A hybrid group such as X25519MLKEM768 protects the sessions that actually negotiate it, so both ends must support it and a capture must show the group that was selected. Server and signer authentication is a separate, later concern (see the SSH section).

OS Vendor Status

Shipping ML-KEM and ML-DSA in an operating system is a separate step from having them listed on a FIPS 140-3 certificate, so check each platform against the CMVP listings.

The key takeaway

Operating system PQC migration spans every cryptographic layer and requires checking where system defaults apply versus where bundled libraries or applications override them.

✓ Reviewed by PQC Today

The most impactful PQC change for any OS is enabling hybrid TLS key exchange at the system level. When you configure as a TLS 1.3 KEM group, applications must load the relevant system policy or library configuration. Restart them after a change and test their actual TLS connections: a local capability or a ClientHello offer does not establish the selected group. The peer must support the group too; a permitted classical fallback remains classical.

RHEL 9.7 / 10.1+crypto-policiesexperimental
update-crypto-policies --set DEFAULT:PQ

Red Hat documents the DEFAULT:PQ policy for RHEL 9.7; on RHEL 10.1 the DEFAULT policy is the documented route

Ubuntu 26.04 LTS (OpenSSL 3.5.5)/etc/ssl/openssl.cnfavailable
Groups = x25519mlkem768:x25519:prime256v1

Adds ML-KEM hybrid as preferred TLS 1.3 group for OpenSSL 3.5.0 or later. Ubuntu 24.04 LTS ships OpenSSL 3.0.13, which has no ML-KEM.

Windows Server 2025Schannel (hybrid groups)experimental
Enable X25519MLKEM768 via Group Policy or TLS cmdlets

Disabled by default — hybrid groups are available from KB5089573 / KB5099536 and require explicit enablement

FreeBSD 14.x/etc/ssl/openssl.cnf + oqsprovidermanual
pkg install openssl-oqsprovider && configure openssl.cnf

ML-KEM hybrid TLS available after installing the openssl-oqsprovider package (FreeBSD port security/openssl-oqsprovider) and activating it in openssl.cnf

GnuTLS (curl, wget, systemd)

Applications may use GnuTLS instead of OpenSSL; check the actual application build. GnuTLS 3.8.8 introduced experimental final-ML-KEM hybrid groups; 3.8.9 added experimental ML-DSA library and certtool support. Version 3.8.10 added ML-DSA TLS handshake signatures and requires leancrypto for PQC (liboqs was removed). On a build with the required PQC backend, inspect the supported group list with gnutls-cli --priority 'SECURE128:+GROUP-X25519-MLKEM768' --list. This lists local capability; an unsupported-group error means that this build cannot use the requested group. It does not establish a completed hybrid handshake. Apply policy through the application’s GnuTLS configuration, restart it and inspect the negotiated group on a successful test connection. An OpenSSL config change does not configure GnuTLS.

The key takeaway

Enabling hybrid TLS key exchange across an OS depends on the library, requires restarting applications, and works only when both peers negotiate it.

✓ Reviewed by PQC Today

SSH has two separate quantum exposures that call for two separate fixes. Session confidentiality depends on the key exchange: a session recorded today with a classical-only key exchange is the case, and a post-quantum key exchange is the control for it. Server authentication depends on the host-key signature: a quantum computer able to forge classical signatures could let an attacker impersonate your server to clients that still trust the old host key, but only in connections made once such a computer exists. A host key does not decrypt anything that was recorded earlier, so replacing it is not an HNDL control. OpenSSH's own post-quantum page makes the same distinction: signature algorithms have no analogue of store now, decrypt later, and the only urgency is retiring classical signature keys before cryptographically relevant quantum computers arrive. Migrating to ssh-mldsa65 addresses that second exposure only.

SSH Key Evolution Timeline
1995-2010ssh-rsa (RSA-1024/2048)deprecated
2009-presentecdsa-sha2-nistp256/384/521vulnerable
2014-presentssh-ed25519current-best
2026+ssh-mldsa65 (ML-DSA-65)pqc
Two PQC Layers in SSH
1. Key Exchange (KEX)

Protects session encryption. OpenSSH 8.5+ supports sntrup761x25519-sha512 hybrid KEX (the default from 9.0). OpenSSH 9.9 adds mlkem768x25519-sha256, enabled by default, and OpenSSH 10.0 makes it the default KEX. This is the control for HNDL against session contents; it works only if both client and server offer it.

2. Host Authentication

Verifies server identity via host key signature. It has no store now, decrypt later exposure: forging a host-key signature only helps an attacker in connections made after a capable quantum computer exists, so the aim is to retire classical host keys ahead of that point. ML-DSA host key types are described in the Internet-Draft draft-sfluhrer-ssh-mldsa (revision 08 when checked), which writes the names as ssh-mldsa-44, ssh-mldsa-65 and ssh-mldsa-87; this lesson uses ssh-mldsa65 as shorthand. An Internet-Draft is a work in progress, not a standard. The composite ssh-mldsa44-ed25519 algorithm is specified in the SSHM working group draft draft-ietf-sshm-composite-sigs-00, and OpenSSH 10.6 enables it.

The key takeaway

In SSH, post-quantum key exchange protects recorded sessions from Harvest Now, Decrypt Later, whereas replacing host keys addresses only future server impersonation.

✓ Reviewed by PQC Today

Package signing is a supply chain integrity mechanism — it proves that the package you install came from the expected vendor and has not been tampered with. Today, RPM and DEB packages use OpenPGP signatures (the key type depends on the distribution). PQC migration requires coordinating upgrades across the signing server, repository metadata, and all client package managers.

RPM Ecosystem (RHEL / Fedora)
  • • rpmsign: adds OpenPGP signatures to the RPM header
  • • rpm/dnf: verify against the OpenPGP keys in the keyring
  • • PQC path: RPM 6.0.0 lists OpenPGP v6 and PQC signatures, and Red Hat signs RHEL 10.1 packages with a hybrid ML-DSA-87 + Ed448 key beside its RSA key
DEB Ecosystem (Debian / Ubuntu)
  • • InRelease: signed repo metadata (APT)
  • • apt: verifies the InRelease OpenPGP signature on update
  • • PQC path: this lesson cites no Debian or Ubuntu ML-DSA plan or date (DEP-18 covers CI and merge-request workflow, not signatures)
Why Package Signing Lags Behind

Package signing requires coordinated ecosystem upgrades. The signing infrastructure, repository metadata format, package manager client, and end-user systems must ALL support the new algorithm before migration. This is significantly harder than a server-side TLS config change. Red Hat's approach shows one way to stage it: add a post-quantum signature beside the existing RSA one, so systems that cannot verify the new signature still verify the old one and newer clients check both. A client without RPM 6 signature support does not check the post-quantum signature at all.

The key takeaway

Package signing lags because signing servers, repository metadata, and client package managers must all support PQC together, though dual signatures can stage migration.

✓ Reviewed by PQC Today

compliance creates a significant challenge for PQC migration: most current FIPS modules were certified before ML-KEM and ML-DSA were standardized. Organizations in regulated industries (government, finance, healthcare) face a temporary conflict between FIPS compliance and PQC deployment.

OS Vendor PQC Readiness Overview
Red HatRHEL 9.x / 10.x
Verified 2026-06-19: catalog status available....
GAFIPS 140-3
CanonicalUbuntu 26.04 LTS (Resolute Raccoon)
Verified 2026-06-19: Canonical ships GA PQC in current releases (catalog tracks Ubuntu 26.04 LTS = available)....
GAFIPS 140-3
MicrosoftWindows Server 2025 / Windows 11 24H2
The November 2025 GA covers the CNG APIs for ML-KEM and ML-DSA on Windows 11 24H2+ and Windows Server 2025; SLH-DSA is n...
GAFIPS 140-3
Debian ProjectDebian 13 (Trixie) / Debian 12 (Bookworm)
Verified 2026-06-19: catalog status partial....
PreviewNo FIPS cited
Alpine Linux ProjectAlpine Linux 3.20+
Verified 2026-06-19: catalog status available. Alpine 3.22 ships OpenSSL 3.5, providing built-in ML-KEM/ML-DSA/SLH-DSA a...
GANo FIPS cited
FIPS + PQC Hybrid Strategy

Until PQC algorithms appear in FIPS-certified modules, one option, if your assessor agrees, is a dual approach:

FIPS Workloads

Existing regulated services continue using the FIPS 140-3 module (classical crypto only). No disruption to compliance posture.

New PQC Services

Where your assessor accepts PQC services outside the validated boundary, new services can use a non-validated PQC provider: the default OpenSSL provider on OpenSSL 3.5 or later, or oqsprovider on older releases. Whether it may run next to the FIPS provider is the assessor's decision. Document the non-FIPS status and include it in compliance assessment until new FIPS certs are issued.

The key takeaway

Because current FIPS 140-3 modules predate ML-KEM and ML-DSA, regulated organizations may separate classical FIPS workloads from non-validated PQC services if assessors agree.

✓ Reviewed by PQC Today

Inventory OS crypto components, configure system TLS, migrate SSH host keys, and check FIPS compatibility.

Check off all sections and mark this reading done.

Try it

workshop steps that practise this lesson
  • Step 3: SSH Host Keys

    Migrate SSH host keys to ML-DSA-65, update sshd_config, and manage known_hosts across your fleet.
  • Step 1: Crypto Inventory

    Audit all OS-level crypto components: system TLS, SSH daemon, package manager, kernel crypto, and container runtime.
  • Step 2: System TLS Policy

    Configure system-wide TLS PQC policy on RHEL (crypto-policies), Ubuntu (openssl.cnf), and Windows (Schannel).

Production Tool Capabilities & Verification ChecklistLinux/Windows Systems Administrators, OS Maintainers & Infrastructure Leads

Capabilities to require in your production tools:

  • OS-wide cryptographic policy (`update-crypto-policies --set DEFAULT:TEST-PQ` on RHEL/Fedora, OpenSSL 3.5+ `openssl.cnf` default providers) enabling `ML-KEM` and `ML-DSA` across system daemons.
  • Package-manager repository metadata and RPM/DEB/MSI package verification using post-quantum or dual classical+PQC signatures.
  • Kernel TLS (kTLS), IPsec (XFRM), and WireGuard/Rosenpass post-quantum key exchange integration.

How to evaluate in your environment

Apply OS PQC crypto-policy in a staging VM, verify `sshd`, `nginx`, and `curl` negotiate hybrid PQC by default, and test package signature verification.

Production evidence to collect

`update-crypto-policies --show` / `openssl version -a` output, system daemon handshake logs, and package verification output.

Completing this Hub module and its browser-based sample exercises teaches the technical and governance decision criteria for your role; it does not test, validate, or certify your deployed production systems.

Record evidence for your environment

Identify the tested build and configuration. Use reference IDs for observations. For a proposed exclusion, record the system boundary or rule and why it excludes this build.

OS-wide cryptographic policy (`update-crypto-policies --set DEFAULT:TEST-PQ` on RHEL/Fedora, OpenSSL 3.5+ `openssl.cnf` default providers) enabling `ML-KEM` and `ML-DSA` across system daemons.
Package-manager repository metadata and RPM/DEB/MSI package verification using post-quantum or dual classical+PQC signatures.
Kernel TLS (kTLS), IPsec (XFRM), and WireGuard/Rosenpass post-quantum key exchange integration.

Evidence missing. 0 of 3 requirements have a reference or scope rationale.

Learning module content can be inaccurate. Please double-check its information. Report inaccuracies in PQC Today GitHub Discussions.