Learn · Practitioner
OS & Platform Crypto PQC
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.
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.
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).
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.
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
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.
Enable X25519MLKEM768 via Group Policy or TLS cmdlets
Disabled by default — hybrid groups are available from KB5089573 / KB5099536 and require explicit enablement
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
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.
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.
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.
- • 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
- • 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)
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.
Until PQC algorithms appear in FIPS-certified modules, one option, if your assessor agrees, is a dual approach:
Existing regulated services continue using the FIPS 140-3 module (classical crypto only). No disruption to compliance posture.
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
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).
Your comments on Operating System & Platform Crypto PQC(0)
Stored on this device only. A comment never counts toward your progress.
Related resources
- ModuleHSM & PQC OperationsPKCS#11 v3.2 mechanisms, firmware migration, and FIPS validation
- ModuleKMS & PQC Key ManagementEnvelope encryption, hybrid key wrapping, and KMS provider roadmaps
- ModuleCrypto Dev APIsOpenSSL EVP, PKCS#11, CNG, and JCA/JCE PQC migration patterns
- ModuleCrypto AgilityAlgorithm-agnostic design patterns for OS-level cryptography
- ModuleSecure Boot & FirmwareUEFI PK/KEK migration, TPM 2.0, and ML-DSA firmware signing
Loading terms, documents and more…
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.
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.