
In short
- The encryption algorithms that protect the communication of your websites, your email, your SSH access, your VPNs and your databases are no longer safe. They belong to two families, RSA and ECC (elliptic-curve cryptography). The traffic they protect must now be considered vulnerable.
- Adversaries are already storing vulnerable traffic to decrypt it later, when AI algorithms will almost certainly be able to break weak encryption (RSA or ECC). This is a "Harvest Now, Decrypt Later" attack, a threat we used to consider only in the context of quantum computing.
- The countermeasure already exists, and it is probably already in your servers. It consists of two algorithms standardised by NIST: ML-KEM for key exchange, already enabled by default in OpenSSL 3.5, OpenSSH 10 and recent browsers, and ML-DSA for signatures. They were originally designed for the post-quantum migration and are commonly classified as PQC. We call them PAIC, post-AI cryptography, because they are probably strong enough to withstand AI, but probably not robust enough for the day real quantum computers exist.
- Keep your certificates, change your session keys. You do not have to regenerate your certificates or the keys you use to authenticate, even if they rely on RSA or ECC. The urgency concerns the negotiation of the session key, which must move to PAIC now, in hybrid or forced mode depending on the service. We explain how to do it.
- What this article covers:
- what is known to date, and what it means for you;
- verification and upgrade recipes for web, mail, SSH, VPN and database servers;
- the rule for deciding when to force PAIC and when to stay hybrid;
- a Claude skill and downloadable scripts that give you the real state of your infrastructure in a few minutes.
1. The explanation
1.1 Where we ended up: the NSA asks for immediate acceleration
On 2 December 2026, the NSA published an advisory entitled "Immediate Actions to Push Toward Post-Quantum". In it, the NSA asks the owners, operators and vendors of national security systems to accelerate the transition to post-quantum cryptography immediately. It justifies this urgency by the discoveries that frontier AI companies ("Frontier SI companies") reported to it, and by the fact that adversaries are already collecting encrypted traffic in order to decrypt it on the day they have the capability.
To understand how we got here in four days, the story has to be told in order.
1.2 Anthropic's work (30 November)
Anthropic published four theoretical papers, accompanied by proofs formalised in Lean and produced with an internal Claude model. They describe quantum algorithms against Module-LWE and Module-SIS, the mathematical problems underlying ML-KEM and ML-DSA, which NIST standardised in August 2024. The release states that these algorithms are not practical for the parameter sets actually in use. For the first time, an AI produced new cryptanalysis against the algorithms meant to replace RSA and ECC.
1.3 The experts' view (1 and 2 December)
- Christopher Peikert considers that this work does not improve attacks against the standards adopted by NIST. Vadim Lyubashevsky advises continuing to follow NIST's recommendations. A 21-member review group (Cryptography Incident Review Group) also judged that the papers pose no practical threat.
- The joint ONCD/NSA/CISA statement said that the disclosed advances do not present an immediate and widespread threat to current cryptography.
1.4 The NSA (2 December)
On the same day, the NSA published the advisory described in 1.1. It is explicitly based on the discoveries reported by the AI companies, and not only on the published papers.
1.5 The companies (2 and 3 December)
Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle published a joint statement. In it they support the US government's instruction and call for migrating to the NIST standards "as soon as possible".
1.6 OVHcloud today
- Certificates generated with quantum entropy. OVHcloud states that it provides nearly five million hosted websites with SSL certificates whose keys are generated from random numbers produced by the Quandela photonic computer it acquired.
- An announced post-quantum approach. In June 2025, the company stated that its research and development is working on post-quantum cryptography following the recommendations of ANSSI (the French national cybersecurity agency), as well as on quantum key distribution (QKD).
- What quantum entropy does not do. It improves the unpredictability of the keys. However, it does not change the algorithm: an RSA or ECC certificate generated with quantum randomness remains vulnerable to Shor's algorithm, and it does not protect the session key exchange. FrenchWeb also notes that this choice sets OVHcloud apart from the large American and Asian players, which are betting on post-quantum encryption.
- What is not documented. No public information states whether OVHcloud endpoints already negotiate X25519MLKEM768. The check_tls.sh script in part 6 checks this with a single command.
1.7 RSA and ECC: two mathematical problems, one shared weakness against Shor
RSA is a trapdoor permutation. Its security rests on the difficulty of factoring the modulus n = p·q. It is used in two ways:
- for signatures: RSASSA-PKCS1-v1_5 and RSASSA-PSS, for X.509 certificates, TLS handshakes (
rsa_pss_rsae_sha256) and SSH keys (rsa-sha2-256/512); - for key transport: RSAES-PKCS1-v1_5 and RSAES-OAEP. This is the static RSA key exchange of TLS 1.2, removed from TLS 1.3; it offers no forward secrecy.
ECC rests on the discrete logarithm in the group of points of a curve defined over a prime field (ECDLP). It comes in three forms:
- NIST Weierstrass curves P-256, P-384 and P-521: ECDHE key exchange and ECDSA signatures;
- Curve25519, in Montgomery form: X25519 key exchange, the default in TLS 1.3 and SSH;
- Edwards25519: Ed25519 signatures.
Shor's algorithm solves both problems in polynomial time.
The cost of breaking RSA-2048:
- in 2012, it was estimated at one billion physical qubits;
- in 2019, Gidney and Ekerå had lowered it to 20 million noisy qubits for eight hours;
- in 2025, Craig Gidney (Google Quantum AI) brought it down to fewer than one million noisy qubits for less than a week.
The cost of breaking ECC. The study by Roetteler, Naehrig, Svore and Lauter (ASIACRYPT 2017) bounds the computation at 9n + 2⌈log₂ n⌉ + 10 logical qubits for a curve over an n-bit prime field, that is about 2,330 logical qubits for P-256. Since then, the algorithm by Chevignard, Fouque and Schrottenloher factors an n-bit RSA modulus with about n/2 logical qubits: RSA and ECC should be expected to fall within the same window.
Where the hardware stands: quantum computers with a relevant error rate have only around 100 to 1,000 qubits today.
Two technical consequences:
- ECDHE forward secrecy does not protect against delayed collection. The X25519 or P-256 public shares travel in the clear and are recorded along with the traffic. Solving the ECDLP on these shares recovers the session key.
- Not all signatures are equally urgent. A handshake signature only matters in real time. By contrast, long-lived keys are more exposed: root certificate authorities, code signing and firmware signing.
1.8 PAIC now, PQC later
The signals converge: the NSA advisory and the joint statement require treating RSA and ECC as unsafe from now on, even though no public proof of a break exists.
At the same time, AI has shown that it can produce new cryptanalysis against the foundations of ML-KEM and ML-DSA. These results have no practical impact today, but they reduce the confidence one can have in how these algorithms will hold up against real quantum computers.
Hence the proposed terminology:
- PAIC (post-AI cryptography): ML-KEM, ML-DSA and SLH-DSA, sufficiently proven against today's AI;
- PQC: the next generation, which will have to withstand real quantum computers.
The strategy follows from this: switch immediately to PAIC, in hybrid mode with X25519, and make your systems able to change algorithms for the second switch.
2. Consequences: encrypt the connection first, authentication can wait
A TLS connection (HTTPS, IMAPS, SMTP with STARTTLS) or an SSH connection performs two distinct operations, in this order. The key exchange starts with the very first messages and produces the session key that will encrypt all the traffic. Authentication comes next: the server signs the whole negotiation with its key (RSA or ECC certificate, SSH host key), which proves its identity and guarantees that the key exchange has not been hijacked. These two operations do not face the same risk.
| Aspect | Connection encryption (key exchange) | Connection authentication (signatures) |
|---|---|---|
| What is protected | The confidentiality of all the data exchanged. | The identity of the server or client at connection time. |
| Form of the threat | "Harvest now, decrypt later": traffic recorded today can be decrypted on the day the capability exists; the threat is therefore retroactive. | Active impersonation, possible only on the day the capability exists; an authentication that succeeded yesterday does not become false after the fact. |
| What to do | Switch to PAIC (hybrid ML-KEM) immediately. | Nothing urgent: keep your current RSA or ECC certificates and SSH keys. |
| Available solution | Enabled by default in OpenSSL 3.5, OpenSSH 10, Chrome 131, Firefox 132, Safari 26. | ML-DSA and Merkle Tree Certificates; no browser enables ML-DSA by default yet; MTC production at Let's Encrypt planned for 2027. |
| US federal deadline (Executive Order 14412) | 31/12/2030. | 31/12/2031. |
The practical rule is therefore simple: there is no need today to regenerate your RSA or elliptic-curve certificates or your SSH keys; what is required is that classical authentication leads to a connection whose session key is negotiated with PAIC. The hybrid key exchange protects the confidentiality of the session independently of the authentication keys. Authentication will have to migrate in turn, which justifies inventorying certificates, host keys and software signing chains now, so that the migration can be rolled out together with the ecosystem (Cloudflare and Google are targeting 2029). For those who nevertheless want to move their TLS certificates to PAIC right now, part 7, at the end of the article, explains how to do it and within what limits, and why it is not yet possible for SSH keys.
| Type of system | Connection: do it now | Authentication: plan it |
|---|---|---|
| Web (HTTPS) | X25519MLKEM768 key exchange (OpenSSL 3.5). | Keep current certificates; MTC from 2027. |
| SSH | mlkem768x25519-sha256 (OpenSSH 10). | Keep current host and user keys. |
| X25519MLKEM768 (Postfix 3.11, Dovecot and Exim linked against OpenSSL 3.5). | Keep current certificates. | |
| VPN | OpenVPN 2.7, strongSwan 6.0, WireGuard with PSK (Rosenpass). | Keep current certificates and keys. |
| Databases | PostgreSQL 18, MySQL with OpenSSL 3.5. | Keep current certificates. |
| Software and firmware signing | Not applicable. | Exception to anticipate: LMS/XMSS or ML-DSA required by CNSA 2.0 for national security systems. |
3. Solutions: PAIC algorithms and the switch strategy
3.1 The two algorithms to know: ML-KEM and ML-DSA
| Algorithm or identifier | Role | Reference | Use |
|---|---|---|---|
| ML-KEM (768, 1024) | Key exchange | FIPS 203 | The core of the PAIC switch; ML-KEM-1024 required by CNSA 2.0. |
| ML-DSA (65, 87) | Signature (authentication) | FIPS 204 | For the later migration of authentication. |
| SLH-DSA | Hash-based signature | FIPS 205 | Long-term or firmware use. |
| X25519MLKEM768 | TLS 1.3 name of the hybrid exchange | RFC 10024 | Default in OpenSSL 3.5 and browsers. |
| mlkem768x25519-sha256 | SSH name of the hybrid exchange | OpenSSH 9.9 | Default in OpenSSH 10.0. |
| x25519_mlkem768 | Windows (Schannel) name | Windows Server 2025 | Not enabled by default. |
Hybrid mode combines X25519 and ML-KEM: the session key stays protected as long as one of the two is not broken. In the PAIC-then-PQC logic, this is the most prudent choice, since it relies neither solely on a classical algorithm considered unsafe, nor solely on a recent algorithm whose long-term robustness remains to be demonstrated.
3.2 The common prerequisite: the cryptographic library
The decisive factor is the OpenSSL version each piece of software is linked against: at least OpenSSL 3.5, preferably 3.5.6 or 3.6.2, because of CVE-2026-2673.
| Distribution | System OpenSSL | Consequence |
|---|---|---|
| Debian 13; RHEL, AlmaLinux, Rocky 9.8 | 3.5 | PAIC available |
| Debian 12; Ubuntu 24.04 and 22.04 LTS | 3.0 | PAIC unavailable; naming the group prevents nginx from starting |
| RHEL, AlmaLinux, Rocky 8 | 1.1.1 | Same |
| Ubuntu 26.04 LTS | 3.5 (3.5.5 observed on 3 December 2026) | PAIC available; watch for the 3.5.6 update for CVE-2026-2673 |
If your servers run one of these older distributions, the PAIC switch starts with an upgrade that can be heavy: a distribution version upgrade, or recompiling services against OpenSSL 3.5, with the dependencies, restarts and application validation that this implies. This is often where the real work lies, before any configuration question.
3.3 The cost
The overhead is mainly in size, about 2.2 KB more per handshake, with a small computational overhead (+21% on the server side with an ECDSA certificate, about 6% with an RSA-2048 certificate). The hybrid ClientHello is close to 1,500 bytes and does not pass well through some firewalls and inspection devices.
3.4 Force or stay hybrid: the general rule
- Hybrid: the server offers PAIC and keeps a classical fallback for older clients; the strict variant demands PAIC from every capable client, the weak variant accepts X25519 as soon as a client sends it first.
- Forced: only PAIC is accepted; any older client is refused ("no suitable key share" in nginx).
- Proposed rule: force wherever you control all the clients (administrative SSH, VPN, database replication, server-to-server links); stay in strict hybrid on public ports (web) and on mail.
3.5 The timelines
| Framework | Deadlines | Status |
|---|---|---|
| United States: Executive Order 14412 | Key exchange by 31/12/2030, signatures by 31/12/2031. | |
| CNSA 2.0 | ML-KEM-1024, ML-DSA-87; new national security systems from 2027. | |
| European Union | First steps end of 2026; high risk end of 2030; as much as possible by 2035. | |
| France: ANSSI | Sensitive ministerial systems end of 2030. | |
| Industry | Cloudflare and Google: 2029, authentication included. |
4. Implementation: verification and upgrade recipes per software
For each piece of software: the minimum version, the default behaviour and the commands that show the current state. The danger levels below are a qualitative assessment meant for prioritising.
| Port | Service | Danger if exposed | Software covered |
|---|---|---|---|
| 22/tcp | SSH | Critical | OpenSSH |
| 443/tcp | HTTPS | High | nginx, Apache, HAProxy, Caddy, Traefik, Varnish |
| 25, 465, 587/tcp | SMTP | High | Postfix, Exim |
| 993, 995/tcp | IMAP, POP | High | Dovecot |
| 3389/tcp | RDP | Critical | Windows (Schannel) |
| 1194/udp, 500/4500 udp, 51820/udp | VPN | High | OpenVPN, strongSwan, WireGuard |
| 5432, 3306/tcp | Databases | Critical | PostgreSQL, MySQL |
First of all: check your test tool. A client that is too old leads to the wrong conclusion that a server is classical. The command blocks in this article contain no comments, so that they can be pasted as is into bash as well as into zsh, the default shell on macOS, which rejects the "#" character in interactive mode.
openssl version
openssl list -tls1_3 -tls-groups | tr ':' '\n' | grep -i mlkem
ssh -V
ssh -Q kex | grep mlkem768x25519-sha256Expected result: OpenSSL 3.5 or later (3.5.6 or later, or 3.6.2 or later, for the security fix), at least X25519MLKEM768 in the list of groups, OpenSSH 9.9 or later, and the line mlkem768x25519-sha256. On macOS, the system openssl command is LibreSSL: it does not know the list subcommand and cannot test PAIC. Before installing anything, check what is already there: which -a openssl lists every openssl command in the order the terminal uses them, and brew --version tells you whether Homebrew is installed. Having OpenSSL 3.5 on the Mac is in fact not necessary: its SSH client (OpenSSH 10.5 on macOS 26.7.3) already tests SSH servers correctly, and the TLS tests can be run from any recent Linux server that has OpenSSL 3.5.
Reading openssl s_client output correctly with OpenSSL 3.5. Two behaviours mislead a quick reading, and misled our own scripts during their first real run: when the connection fails, OpenSSL still prints "Negotiated TLS1.3 group: <NULL>", together with "Cipher is (NONE)"; when the connection succeeds with a classical group such as X25519, OpenSSL prints no "Negotiated TLS1.3 group" line at all. A failure is therefore recognised by "Cipher is (NONE)", and the classical group is read from the "Server Temp Key" or "Peer Temp Key" line.
4.1 SSH servers: OpenSSH (22/tcp)
OpenSSH 9.9 adds mlkem768x25519-sha256, the default from 10.0; OpenSSH 10.1 warns when the exchange is not PAIC.
ssh -V
sudo sshd -T | grep kexalgorithms
ssh -v user@server exit 2>&1 | grep "kex: algorithm"Expected result: the server's kexalgorithms line starts with mlkem768x25519-sha256, and the connection shows debug1: kex: algorithm: mlkem768x25519-sha256. The sudo sshd -T command is run on the server, with an administrator account; "user@server" must be replaced by your account and your server. In SSH, it is the client's order of preference that decides which algorithm is chosen among those the server accepts: as long as the server also accepts curve25519-sha256, an old or misconfigured client can still obtain a classical exchange.
Observed on Ubuntu 26.04 LTS (OpenSSH 10.2p1): without any setting, the server's effective list is mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org. A recent client therefore gets PAIC, but a classical client is still accepted: the server is hybrid by default, and the forcing described in 5.1 has to be done explicitly.
4.2 Web servers: nginx (443/tcp)
nginx linked against OpenSSL 3.5 or later uses PAIC by default, provided ssl_ecdh_curve is not set; an explicit list replaces OpenSSL's list.
nginx -V 2>&1 | grep -E "built with|running with"
sudo nginx -T | grep -E "ssl_ecdh_curve|ssl_conf_command"
openssl s_client -connect your-domain.example:443 -tls1_3 -groups X25519MLKEM768 \
</dev/null 2>/dev/null | grep -i negotiatedExpected result: nginx built with OpenSSL 3.5 or later, no ssl_ecdh_curve line that would replace OpenSSL's default list, and Negotiated TLS1.3 group: X25519MLKEM768. The last command must target your own domain, served by this nginx: a test on another site says nothing about your server.
Beware of the "flat" list X25519MLKEM768:X25519: a client that sends X25519 first gets X25519; the tiered list X25519MLKEM768/X25519 demands PAIC.
Observed on Ubuntu 26.04 LTS: nginx 1.28.3, linked against OpenSSL 3.5.5 and without an ssl_ecdh_curve directive, is classified HYBRIDE-STRICT, which is exactly the target state for a public site, without any configuration change.
4.3 Web servers: Apache httpd, HAProxy, Caddy, Traefik, Varnish
| Software | Version and default | Read the current state |
|---|---|---|
| Apache httpd | mod_ssl linked against OpenSSL 3.5; OpenSSL default when there is no Groups/Curves directive. | grep -rE "SSLOpenSSLConfCmd +(Groups|Curves)" /etc/apache2 /etc/httpd |
| HAProxy | Community 3.3+ or Enterprise 3.2+, built with AWS-LC. | haproxy -vv | grep -i "built with" |
| Caddy | 2.10+: PAIC by default. | caddy version |
| Traefik | Binary built with Go 1.24+. | traefik version |
| Varnish | Does not terminate TLS: the front end (Hitch, HAProxy, nginx) carries the setting. | varnishd -V; hitch --version |
4.4 Mail servers: Postfix, Exim, Dovecot
Postfix 3.11 linked against OpenSSL 3.5 negotiates PAIC by default (tls_eecdh_auto_curves = ?X25519MLKEM768:DEFAULT); Exim with tls_eccurve = auto and Dovecot without a curve list delegate to OpenSSL.
postconf mail_version tls_eecdh_auto_curves tls_ffdhe_auto_groups
exim -bP tls_eccurve
doveconf -a | grep -iE "ssl_.*(curve|group)"
(sleep 2; printf 'QUIT\r\n') | openssl s_client -starttls smtp \
-connect mx.example.com:25 -groups "*X25519MLKEM768:*X25519:P-256" -briefPitfall observed with Postfix 3.10. On Ubuntu 26.04 LTS, Postfix 3.10.6 ships with an explicit list of classical groups (tls_eecdh_auto_curves = X25519 X448 prime256v1 secp384r1 secp521r1). This list replaces OpenSSL 3.5's list: port 25 therefore stays CLASSIQUE even though the library can do PAIC. Emptying the two parameters concerned, as shown in 5.8, moved port 25 to HYBRIDE-STRICT.
4.5 RDP, VPN and databases
| Software | Version and default | Read the current state |
|---|---|---|
| Windows RDP | Windows Server 2025 (KB5099536); PAIC present but not enabled by default. | Get-TlsEccCurve |
| OpenVPN | 2.7+ with OpenSSL 3.5: PAIC by default; OpenVPN Connect v3 incompatible. | openvpn --version | grep -i library |
| strongSwan | 6.0+: ML-KEM must be configured. | sudo swanctl --list-conns | grep -i mlkem |
| WireGuard | No native PAIC; PSK provided by Rosenpass. | sudo wg show all preshared-keys |
| PostgreSQL | 18+ (ssl_groups parameter). | sudo -u postgres psql -c "SHOW ssl_groups;" |
| MySQL | Built with OpenSSL 3.5: PAIC offered by default. | SHOW SESSION STATUS LIKE 'Tls_key_exchange_algorithm'; |
5. Force PAIC or stay hybrid: the configuration software by software
For each piece of software, the advice comes first, followed by the configuration that matches that advice. When the advice is to force, the hybrid configuration is also given, because it serves as a transition step while you check that all clients follow. When the advice is to stay hybrid, only the hybrid configuration is given. Configurations marked "to be tested" have no documentation confirming the forcing.
| Software | Advice |
|---|---|
| OpenSSH | FORCE |
| nginx, Apache, Caddy, Traefik, Varnish | HYBRID |
| HAProxy | HYBRID (front end) / FORCE (towards the backends) |
| Postfix, Exim, Dovecot | HYBRID (never force port 25) |
| Windows RDP | HYBRID (and do not expose RDP on the Internet) |
| OpenVPN, strongSwan, WireGuard | FORCE |
| PostgreSQL, MySQL | FORCE if clients are internal and up to date, otherwise HYBRID |
5.1 OpenSSH
Advice: FORCE. Administration clients are under your control and OpenSSH 9.0+ is very widespread; keep console access during the change.
Hybrid configuration (transition)
# /etc/ssh/sshd_config.d/50-paic.conf (a single line)
KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,curve25519-sha256
# client (~/.ssh/config)
Host *
KexAlgorithms ^mlkem768x25519-sha256Forced configuration (target)
KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512
sshd -t && systemctl reload sshKeep an SSH session open during the reload, so that you can roll back if the new configuration blocks access.
5.2 nginx
Advice: HYBRID. Public port: old browsers, bots, API clients and intermediate devices would be refused.
Hybrid configuration
# Option A (recommended): do not set ssl_ecdh_curve
# Option B: tiered list
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519MLKEM768/X25519:prime256v1;5.3 Apache httpd
Advice: HYBRID.
Hybrid configuration
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd Groups X25519MLKEM768/X25519:P-2565.4 HAProxy
Advice: HYBRID on the front end, that is for connections from clients coming from the Internet, and FORCE on the backends, that is for connections from HAProxy to your own servers, whose configuration you control.
Front end, hybrid configuration
global
ssl-default-bind-options ssl-min-ver TLSv1.3 no-tls-tickets
ssl-default-bind-curves X25519MLKEM768:SecP256r1MLKEM768:X25519:P-384:P-256Backends, forced configuration
global
ssl-default-server-options ssl-min-ver TLSv1.3
ssl-default-server-curves X25519MLKEM768:SecP256r1MLKEM7685.5 Caddy
Advice: HYBRID.
Hybrid configuration: nothing to do, leave curves unset (Caddy 2.10+).
5.6 Traefik
Advice: HYBRID.
Hybrid configuration
tls:
options:
default:
curvePreferences: [X25519MLKEM768, X25519, CurveP256]5.7 Varnish
Advice: HYBRID. Varnish does not encrypt by itself: apply the hybrid configuration of the TLS front end in use (Hitch, HAProxy or nginx).
5.8 Postfix
Advice: HYBRID, and never force port 25. A "PAIC only" receiver can cause some senders to deliver in the clear.
Hybrid configuration
# Postfix 3.11 + OpenSSL 3.5: change nothing (default)
# Postfix 3.10 + OpenSSL 3.5: let OpenSSL decide
tls_eecdh_auto_curves =
tls_ffdhe_auto_groups =With Postfix 3.10, the following commands apply this setting while keeping a copy of the original configuration; they moved port 25 from CLASSIQUE to HYBRIDE-STRICT on Ubuntu 26.04 LTS.
sudo cp /etc/postfix/main.cf /etc/postfix/main.cf.avant-paic
sudo postconf -e "tls_eecdh_auto_curves =" "tls_ffdhe_auto_groups ="
sudo postfix check && sudo postfix reloadTo roll back: sudo cp /etc/postfix/main.cf.avant-paic /etc/postfix/main.cf, then sudo postfix reload.
5.9 Exim
Advice: HYBRID. Exim validates group names with OpenSSL's OBJ_sn2nid function and may reject ML-KEM names in an explicit list: the default configuration is the safest.
Hybrid configuration: tls_eccurve = auto
5.10 Dovecot
Advice: HYBRID.
Hybrid configuration: do not set ssl_curve_list.
5.11 Windows RDP
Advice: HYBRID, and do not expose RDP on the Internet.
Hybrid configuration
# GPO "ECC Curve Order":
x25519_mlkem768, curve25519, nistP256, nistP384
# or PowerShell:
Enable-TlsEccCurve -Name x25519_mlkem768 -Position 05.12 OpenVPN
Advice: FORCE once all clients have been migrated.
Hybrid configuration (transition): tls-groups "X25519MLKEM768:X25519"
Forced configuration (target)
tls-version-min 1.3
tls-groups "X25519MLKEM768"5.13 strongSwan
Advice: FORCE.
Hybrid configuration (transition)
proposals = aes256gcm16-prfsha384-x25519-ke1_mlkem768,aes256gcm16-prfsha384-x25519
esp_proposals = aes256gcm16-x25519-ke1_mlkem768,aes256gcm16-x25519Forced configuration (target)
proposals = aes256gcm16-prfsha384-x25519-ke1_mlkem768
esp_proposals = aes256gcm16-x25519-ke1_mlkem7685.14 WireGuard
Advice: FORCE.
Hybrid configuration (transition): Rosenpass provides a post-AI PSK to equipped peers.
Forced configuration (target): a PresharedKey on every peer (wg genpsk or Rosenpass).
5.15 PostgreSQL
Advice: FORCE if all clients are internal and up to date, otherwise HYBRID.
Hybrid configuration (transition)
ssl_groups = 'X25519MLKEM768:X25519:prime256v1'Forced configuration (target)
ssl_min_protocol_version = 'TLSv1.3'
ssl_groups = 'X25519MLKEM768'5.16 MySQL
Advice: FORCE (administration, replication); HYBRID then FORCE (application traffic).
Hybrid configuration (transition): default (tls_kex empty, force_pqc = OFF).
Forced configuration (target)
SET PERSIST force_pqc = ON;
SET PERSIST admin_force_pqc = ON;
SET PERSIST replication_force_pqc = ON;6. Claude skill and scripts to audit your infrastructure
What this part is for. Parts 4 and 5 give the commands to type by hand, software by software. This part provides ready-to-use tools that do this work for you, machine by machine, and that answer three questions:
- Is this machine capable of PAIC, that is, are the versions of OpenSSL, of its libraries and of OpenSSH installed on it recent enough?
- Which services run on this machine (SSH, web, mail, VPN, databases), and for each of them, is the key exchange currently classical, hybrid or forced to PAIC?
- What must be changed in the configuration of each service to make it hybrid or forced, and which of the two should you choose?
What the downloadable package contains. The pq-migration-audit package contains two different things, which can be used separately:
- A skill for Claude: this is the SKILL.md file, which describes to Claude the procedure to follow, the possible states and the known pitfalls. If you add this skill to Claude, you can ask it, for example, "check whether my server has moved to PAIC", and Claude will run the scripts in order and then explain the results to you.
- Scripts: they work on their own, without Claude, in a terminal. The audit scripts only read and test: they change no configuration and write nothing on the audited machine.
| Script | Where to run it | What it does | What it gives you |
|---|---|---|---|
| pq_audit_linux.py | On every Linux server or workstation to be audited | Checks the versions, detects the sixteen pieces of software in part 5, reads their configuration and connects to their ports to see what is actually negotiated | The state of each service, then for each one the advice followed by the matching configuration |
| pq_audit_macos.sh | On a Mac | Checks the versions of macOS, OpenSSL and OpenSSH, detects the services running on the Mac and, if you give it the address of one of your sites, tests that site from the Mac | The state of the Mac as a client and as a server, and the state of the tested site |
| pq_audit_windows.ps1 | On a Windows server or workstation | Checks the Windows version, the key exchange groups enabled in Schannel (the Windows TLS library, used by RDP, IIS and Edge) and OpenSSH for Windows | The state of the machine and the PowerShell commands to run to enable ML-KEM, which the script displays without running them |
| check_tls.sh | On any machine with OpenSSL 3.5 or later | Connects to a single TLS port of a server, local or remote (website, mail server, database) | One of the four states in the table below |
| check_ssh.sh | On any machine with OpenSSH 9.9 or later | Connects to an SSH server, local or remote, and checks which key exchange is negotiated and whether a classical client is refused | FORCÉ, HYBRIDE or CLASSIQUE |
| pq_log_share.py | On the nginx server | Reads the nginx access log | The percentage of visitors that already negotiate PAIC, and the list of browsers or bots that remain classical and would be blocked if you forced |
| pq_lab.sh | On your workstation | Starts fake servers whose state is known in advance, then checks that check_tls.sh and check_ssh.sh find exactly that state | Proof that your test tools are reliable before you use them on your real servers |
The four states displayed by the scripts (the scripts print the French names shown in the first column)
| State | Meaning | Action |
|---|---|---|
| CLASSIQUE (classical) | No PAIC key exchange is possible. | Upgrade the library (OpenSSL 3.5.6 or later) or the software. |
| HYBRIDE-FAIBLE (weak hybrid) | PAIC is accepted, but a client that offers X25519 first gets X25519. | Switch to a tiered list, or go back to OpenSSL's default list. |
| HYBRIDE-STRICT (strict hybrid) | The server demands PAIC, but still accepts a client that does not know it. | Recommended target for public ports. |
| FORCÉ (forced) | A client that does not know PAIC is refused. | Recommended target for links where you control all the clients. |
Step 1: audit each machine
Run the script for your system on every machine to be audited. Each script starts by checking the prerequisites, then moves on to the services.
On Linux, with administrator rights so that all configurations can be read:
sudo python3 scripts/pq_audit_linux.pyOn macOS, replacing the address with that of one of your sites, which the Mac will test from the outside (the option is optional):
bash scripts/pq_audit_macos.sh --url https://your-domain.exampleOn Windows, in a PowerShell console opened as administrator:
powershell -ExecutionPolicy Bypass -File scripts\pq_audit_windows.ps1Running the Windows script remotely. The script must run on the Windows machine itself, because it reads its local configuration (Schannel, registry, services). There are three ways to do this, depending on the workstation you work from.
From a Mac or a Linux machine, over SSH. Windows 10 (version 1809 and later), Windows 11 and Windows Server 2019 and later offer an OpenSSH server, installed by default on Windows Server 2025; installing it creates the OpenSSH-Server-In-TCP firewall rule, which opens port 22. If the server is not present yet, open PowerShell as administrator on the Windows machine, once, and run the following commands:
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd
Set-Service -Name sshd -StartupType AutomaticThen, from the Mac or the Linux machine, replacing user with an administrator account of the Windows machine and windows-ip with its IP address:
scp scripts/pq_audit_windows.ps1 user@windows-ip:
ssh user@windows-ip "powershell -ExecutionPolicy Bypass -File pq_audit_windows.ps1"Once this SSH server is enabled, check_ssh.sh can also test it from the Mac; remember to force it to PAIC like any administrative SSH server (5.1), its configuration file usually being C:\ProgramData\ssh\sshd_config.
From another Windows machine, with PowerShell Remoting. If PowerShell Remoting (WinRM service) is enabled on the target machine, a single command, run as administrator from another Windows machine, runs the script remotely without copying it: PowerShell sends the script's content to the remote machine and runs it there.
Invoke-Command -ComputerName windows-name -FilePath .\pq_audit_windows.ps1Without remote access. Copy the file to the Windows machine (network share, USB stick), open a session (on site or through Remote Desktop), then run the command above in a PowerShell opened as administrator. The -Json report.json option also saves the result to a file, which is handy to bring it back.
The pq_audit_windows.ps1 file is saved in UTF-8 with a byte order mark (BOM): without it, Windows PowerShell 5.1, the version installed by default, would display accented characters incorrectly.
The prerequisite check always comes first. The script classifies each item as OK, ATTENTION (warning) or BLOQUANT (blocking). A single BLOQUANT item is enough for no PAIC configuration to be possible on this machine before an upgrade: on an older distribution, this upgrade is often the heaviest task of the whole migration (see 3.2).
| System | What the script checks first |
|---|---|
| Linux | Distribution, OpenSSL version, versions of the libssl and libcrypto libraries actually installed (and whether several versions are present side by side, since each service may be linked against a different version), OpenSSH. |
| macOS | macOS version (Apple's TLS stack negotiates ML-KEM by default from macOS 26), available OpenSSL (the system openssl command is LibreSSL, which does not know ML-KEM: you must install openssl@3 with Homebrew to be able to test), OpenSSH. |
| Windows | Windows version, key exchange groups enabled in Schannel (ML-KEM is present but not enabled by default), group policy, OpenSSH for Windows, OpenSSL if present. |
The Linux script also accepts three useful options: --host to test the ports of a machine other than the one it runs on, --catalogue to display the recommendations of part 5 without auditing anything, and --json to save the report to a file.
python3 scripts/pq_audit_linux.py --host srv.your-domain.example
python3 scripts/pq_audit_linux.py --catalogue --only nginx
python3 scripts/pq_audit_linux.py --json report.jsonStep 2: check that your test tools are not wrong
The connection tests use the openssl and ssh commands of the machine on which you run them. If these commands are too old, they cannot offer PAIC, and the test wrongly concludes that the server is classical: this is exactly what happens on a Mac with the system openssl command.
The pq_lab.sh script removes this risk. The start command starts six fake servers on your own workstation, which listen only on the local address 127.0.0.1 and are therefore not reachable from the network. Each fake server is set to a state known in advance. The test command queries each of them with check_tls.sh and check_ssh.sh, compares the result with the expected state and displays OK or ÉCHEC (failure). The stop command stops the fake servers. No administrator rights are needed.
| Port | Fake server | Expected state |
|---|---|---|
| 8443 | TLS, PAIC only | FORCÉ |
| 8444 | TLS, PAIC demanded, classical as fallback | HYBRIDE-STRICT |
| 8445 | TLS, PAIC and classical at the same rank | HYBRIDE-FAIBLE |
| 8446 | TLS, classical only | CLASSIQUE |
| 2222 | SSH, PAIC exchange only, with immediate disconnection after the key exchange | FORCÉ |
| 2223 | SSH, PAIC and classical | HYBRIDE |
bash scripts/pq_lab.sh start
bash scripts/pq_lab.sh test
bash scripts/pq_lab.sh stopOn a Mac, you must point the script to the OpenSSL installed with Homebrew:
OPENSSL=/opt/homebrew/opt/openssl@3/bin/openssl bash scripts/pq_lab.sh startIf all the tests display OK, your tools are reliable and you can move on to step 3 from this workstation.
On a Mac without OpenSSL 3.5, the lab skips the TLS part and only tests the SSH part: this is expected, and it is enough to validate the Mac as an SSH test workstation.
Step 3: test your exposed services, one port at a time
From a workstation whose tools passed step 2, test each of your services as it is seen from the outside. This test can give a different result from step 1 when a load balancer, a web application firewall or a content delivery network sits in front of the server: it is then that device that negotiates the key exchange with the client.
A test that fails with "Connection refused" says nothing about PAIC: the connection was refused before any TLS negotiation. It means that nothing listens on that port at the address the tested name points to, or that a firewall rejects the connection. During our tests, a server's port 25 was HYBRIDE-STRICT when tested through 127.0.0.1, but refused the connection when tested through its public name from the same machine. Before drawing a conclusion, compare the addresses of the name (getent ahosts name) with those the service listens on (sudo ss -ltnp).
bash scripts/check_tls.sh your-domain.example 443
bash scripts/check_tls.sh mx.your-domain.example 25 smtp
bash scripts/check_ssh.sh srv.your-domain.example 22Step 4: measure before forcing
Before forcing PAIC on a public service, you need to know what share of your visitors would be refused. For nginx, add to nginx.conf a log format that records the negotiated group, then analyse this log after a few days.
log_format paic '$remote_addr $ssl_protocol $ssl_curve "$http_user_agent"';
access_log /var/log/nginx/paic.log paic;
python3 scripts/pq_log_share.py /var/log/nginx/paic.logStep 5: apply, validate, reload, check again
Apply the configuration chosen in part 5, have the software validate the syntax before reloading, then run the step 3 test again to confirm the new state.
sudo sshd -t && sudo systemctl reload ssh
sudo nginx -t && sudo systemctl reload nginx
sudo postfix check && sudo postfix reload
bash scripts/check_tls.sh your-domain.example 4437. What if you still want to move your certificates and keys to PAIC?
It is possible today for TLS certificates, provided you restrict it to internal use. It is not yet possible for SSH keys.
TLS certificates. OpenSSL 3.5 can generate ML-DSA keys and create X.509 certificates signed with ML-DSA. No public certificate authority issues certificates with post-quantum signatures yet: only an internal certificate authority or a self-signed certificate are possible. In addition, no browser accepts ML-DSA by default yet. Good practice is therefore to serve two certificates: an ML-DSA certificate for the clients that understand it, and the current RSA or ECC certificate for all the others.
Creating the ML-DSA-65 key and certificate (internal authority or self-signed), then testing a server with a dual certificate (ML-DSA and RSA):
openssl genpkey -algorithm mldsa65 -out server-mldsa.key
openssl req -new -x509 -key server-mldsa.key -out server-mldsa.crt \
-days 365 -subj "/CN=server.internal"
openssl s_server -accept 4433 -cert server-mldsa.crt -key server-mldsa.key \
-dcert server-rsa.crt -dkey server-rsa.key
openssl s_client -connect localhost:4433 -CAfile server-mldsa.crt </dev/null 2>/dev/null \
| grep -E "Peer signature type|Negotiated TLS1.3 group"Expected result: Peer signature type: mldsa65 and Negotiated TLS1.3 group: X25519MLKEM768.
In nginx, the same logic is written with two pairs of directives; the server chooses the certificate according to the signatures the client announces, as it already does for RSA and ECDSA.
ssl_certificate /etc/ssl/server-mldsa.crt;
ssl_certificate_key /etc/ssl/server-mldsa.key;
ssl_certificate /etc/ssl/server-rsa.crt;
ssl_certificate_key /etc/ssl/server-rsa.key;SSH keys: not possible today, keep your current keys. ML-DSA signatures for SSH are not yet standardised: they exist only as IETF drafts, one defining ssh-mldsa-44, ssh-mldsa-65 and ssh-mldsa-87, the other, proposed by Damien Miller (OpenSSH), combining ML-DSA and Ed25519 on the same hybrid principle as the key exchange. No stable version of OpenSSH offers them to date according to our sources, and OpenSSH 10.2p1 on Ubuntu indeed does not offer them. For SSH, the only PAIC action available today is therefore the mlkem768x25519-sha256 key exchange described in parts 4 and 5; your Ed25519, ECDSA or RSA host and user keys are to be kept as they are.
Advice: restrict ML-DSA to internal links that you control end to end (server-to-server APIs, mutual mTLS authentication). For the public web, wait for Merkle Tree Certificates, which Let's Encrypt plans to put into production in 2027.