Post-quantum migration guides
Tested configurations for Cloudflare, nginx, Caddy, Apache, HAProxy, AWS, and OpenSSH aligned with NIST FIPS 203/204 and BSI guidance.
Cloudflare Edge & Origin
Effort: 5 minImmediate X25519MLKEM768 hybrid PQ TLS on all proxied endpoints.
Cloudflare negotiates X25519MLKEM768 at the edge on proxied records. For Cloudflare to Origin, separate authentication (Full Strict / Authenticated Origin Pulls) from key exchange: verify Automatic Key Exchange plus ML-KEM support on your origin (or use a post-quantum Cloudflare Tunnel).
# 1. Cloudflare Dashboard -> SSL/TLS -> Edge Certificates:
# - Minimum TLS Version: TLS 1.2 (or TLS 1.3)
# - Always Use HTTPS: ON
# - Enable HSTS (max-age >= 31536000)
#
# 2. Cloudflare -> Origin (separate authentication from key exchange):
# - Encryption mode: Full (Strict) (+ optional Authenticated Origin Pulls for mTLS auth)
# - SSL/TLS -> Overview -> Origin connection & post-quantum encryption:
# verify Automatic Key Exchange is ON and enable ML-KEM on your origin
# (OpenSSL 3.5+ / Go 1.24+), or connect via a post-quantum Cloudflare Tunnel.
# - Docs: https://developers.cloudflare.com/ssl/origin-configuration/automatic-key-exchange/
openssl s_client -connect yourdomain.com:443 -servername yourdomain.com -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -E "Protocol|Cipher|Negotiated TLS1.3 group|Peer temp key|Server Temp Key"
curl -s https://isitpqc.com/api/v1/scan?domain=yourdomain.com | jq '{grade, key_exchange: .tls.key_exchange}'
nginx (OpenSSL 3.5+)
Effort: 15–30 minEnables NIST FIPS 203 hybrid X25519MLKEM768 directly on nginx.
Link nginx against OpenSSL 3.5+ (native ML-KEM) and list X25519MLKEM768 first in ssl_ecdh_curve ahead of classical fallbacks.
# Requires nginx built with OpenSSL 3.5+ (or BoringSSL / AWS-LC)
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:SecP256r1MLKEM768:SecP384r1MLKEM1024:X25519:prime256v1:secp384r1;
ssl_prefer_server_ciphers off;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
# nginx -t && systemctl reload nginx
openssl s_client -connect yourdomain.com:443 -servername yourdomain.com -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -E "Protocol|Cipher|Negotiated TLS1.3 group|Server Temp Key|Peer temp key"
Caddy (Go 1.24+)
Effort: 10 minNative X25519MLKEM768 enabled by default in Go 1.24+ builds.
Caddy uses Go's standard crypto/tls library. Updating to a Caddy release compiled with Go 1.24+ enables X25519MLKEM768 automatically with zero extra flags.
# Verify Go runtime version inside Caddy:
# caddy build-info | grep go
yourdomain.com {
tls {
protocols tls1.2 tls1.3
}
header Strict-Transport-Security "max-age=31536000; includeSubDomains"
reverse_proxy 127.0.0.1:8080
}
caddy version && openssl s_client -connect yourdomain.com:443 -servername yourdomain.com -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -E "Protocol|Cipher|Negotiated TLS1.3 group|Temp Key"
Apache httpd (OpenSSL 3.5+)
Effort: 20–30 minAdds hybrid ML-KEM key exchange via mod_ssl + OpenSSL 3.5+.
Ensure mod_ssl links against OpenSSL 3.5+ and prioritize X25519MLKEM768 in SSLOpenSSLConfCmd Groups.
# Requires Apache httpd with mod_ssl linked against OpenSSL 3.5+
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd Groups X25519MLKEM768:SecP256r1MLKEM768:X25519:prime256v1
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
# apachectl configtest && systemctl reload apache2
openssl s_client -connect yourdomain.com:443 -servername yourdomain.com -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -E "Protocol|Cipher|Negotiated TLS1.3 group|Temp Key"
HAProxy 3.2+ (OpenSSL 3.5+)
Effort: 15 minHigh-throughput hybrid ML-KEM termination on Linux load balancers.
Build or install HAProxy 3.2+ against OpenSSL 3.5+ (or AWS-LC) and set X25519MLKEM768 first in ssl-default-bind-curves.
global
ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets
ssl-default-bind-curves X25519MLKEM768:SecP256r1MLKEM768:X25519:P-256
frontend https_in
bind :443 ssl crt /etc/haproxy/certs/ alpn h2,http/1.1
http-response set-header Strict-Transport-Security "max-age=31536000; includeSubDomains"
haproxy -vv | grep -iE 'OpenSSL|AWS-LC|curves'
AWS CloudFront & ALB
Effort: 10 minActivates AWS-LC hybrid ML-KEM TLS policies at the load balancer / CDN.
Select a modern AWS TLS 1.3 security policy supporting AWS-LC hybrid post-quantum key exchange on ALB and CloudFront distributions.
# AWS ALB: switch HTTPS listener to a Post-Quantum TLS 1.3 security policy
aws elbv2 modify-listener \
--listener-arn arn:aws:elasticloadbalancing:REGION:ACCOUNT:listener/app/... \
--ssl-policy ELBSecurityPolicy-TLS13-1-2-PQ-2025-09
# CloudFront: set MinimumProtocolVersion to TLSv1.2_2021 or TLSv1.3_2025
curl -s https://isitpqc.com/api/v1/scan?domain=yourdomain.com | jq '{grade, key_exchange: .tls.key_exchange}'
OpenSSH (macOS & Linux)
Effort: 2 minFixes macOS default ECDH priority so SSH negotiates mlkem768x25519-sha256.
macOS ships /etc/ssh/crypto.conf putting classical ECDH ahead of post-quantum KEX. Override KexAlgorithms at the top of ~/.ssh/config and on Linux sshd.
# Add to the VERY TOP of ~/.ssh/config (OpenSSH 9.9+ / 10+):
# '^' prepends PQ hybrid KEX ahead of macOS defaults while keeping fallbacks.
Host *
KexAlgorithms ^mlkem768x25519-sha256,[email protected]
# On Linux servers (/etc/ssh/sshd_config.d/99-pqc.conf):
# KexAlgorithms mlkem768x25519-sha256,[email protected],curve25519-sha256
# Verify negotiated KEX:
ssh -v yourserver true 2>&1 | grep "kex: algorithm"
ssh -G example.com | grep '^kexalgorithms '
Reverse Proxy / Edge Termination
Effort: 15 minProtects legacy origins immediately without rewriting application code.
If an appliance or origin cannot yet link OpenSSL 3.5+ or Go 1.24+, terminate TLS 1.3 + X25519MLKEM768 at a reverse proxy (Cloudflare, Caddy, nginx, HAProxy) in front of the origin, then compile your internal CBOM.
# Verify whether yourdomain.com negotiates X25519MLKEM768 with OpenSSL 3.5+ / 4.0+:
openssl s_client -connect yourdomain.com:443 -servername yourdomain.com -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -E "Protocol|Cipher|Negotiated TLS1.3 group|Peer temp key|Server Temp Key"
# Query structured JSON diagnostics via IsItPQC API:
curl -s https://isitpqc.com/api/v1/scan?domain=yourdomain.com | jq '{domain, grade, score, tls, pq_support}'
curl -s https://isitpqc.com/api/v1/scan?domain=yourdomain.com | jq '{grade, kex: .tls.key_exchange, hsts: .infrastructure.hsts}'
Codebase cryptography audit (CBOM)
Map every use of RSA, ECDSA/ECDH, DH, SHA-1, MD5, and AES-128 across repositories, Terraform, containers, VPNs, and API keys before migrating.
# Run in your repository root to list classical crypto usage:
rg -n --hidden --glob '!.git' \
'\b(RSA|RS256|ES256|PS256|ECDSA|ECDH|ECDHE|FFDHE|DHE|secp256r1|prime256v1|ed25519|curve25519|SHA-1|SHA1|MD5|AES-128|TLSv1\.[01]|ssl_ecdh_curve|KexAlgorithms)\b' .
Frequently asked questions
What does IsItPQC actually test?
IsItPQC initiates real, live TLS 1.3 handshakes from our scanner to port 443 of your domain, offering NIST FIPS 203 post-quantum key exchange groups (X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024, and MLKEM1024). It records the exact negotiated key exchange, cipher suite, certificate key algorithm, legacy TLS 1.0/1.1 exposure, HSTS headers, and detected CDN/proxy stack.
Why is Post-Quantum Cryptography urgent in late 2026?
Two forces converged in late 2026: urgent NSA/CISA advisories and a joint statement from Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI, and Oracle warning of AI-accelerated cryptographic risks, alongside national roadmaps like the EU/BSI PQC guideline. Traffic encrypted today with classical-only key exchange can be recorded ('Store Now, Decrypt Later') and decrypted once attacks mature.
What is X25519MLKEM768 and why is it called hybrid?
X25519MLKEM768 combines classical X25519 elliptic-curve Diffie-Hellman with NIST's standardized post-quantum lattice KEM (ML-KEM-768, FIPS 203). An attacker must break BOTH algorithms to recover the session key, giving you quantum resistance without sacrificing decades of classical battle-testing.
My site got an A+, does that mean my entire company is 100% quantum-safe?
No, and be wary of anyone claiming that. An A+ means your public HTTPS edge negotiates strong hybrid post-quantum key exchange with clean TLS hygiene. Public WebPKI certificates are still migrating to ML-DSA (FIPS 204), and internal systems (SSH, VPNs, database TLS, backups, code signing, JWTs, API keys) require a separate Cryptographic Bill of Materials (CBOM) and migration plan.
How do I enable post-quantum TLS on nginx, Caddy, or Cloudflare?
If you proxy through Cloudflare or run Caddy compiled with Go 1.24+, X25519MLKEM768 is already supported out of the box. For nginx or Apache, upgrade to OpenSSL 3.5+ and list X25519MLKEM768 first in ssl_ecdh_curve / SSLOpenSSLConfCmd Groups. Check our Fix Guides page for exact copy-paste snippets.
Does IsItPQC offer a public API or status badge?
Yes. Query GET https://isitpqc.com/api/v1/scan?domain=example.com for structured JSON, GET https://isitpqc.com/api/v1/leaderboard for live benchmark data, or embed https://isitpqc.com/badge/example.com.svg in READMEs and status pages.