- Post-quantum TLS today means hybrid X25519MLKEM768 key exchange over TLS 1.3.
- Cloudflare offers it to visitors on the domains it serves; the origin server is your job.
- On Nginx and Apache you need a build linked against OpenSSL 3.5 or newer, then list X25519MLKEM768 first in your groups.
- Always keep classical fallbacks (X25519, P-256) so older clients still connect, and test before and after.
This guide is for whoever manages your server or CDN. The goal is to have every HTTPS connection use hybrid post-quantum key exchange (X25519MLKEM768) while still accepting older clients.
Before changing anything: take a backup of your configuration, test on a staging server if you can, and record your current result with our free checker so you can compare.
Step 0: Requirements
- TLS 1.3 must be enabled. Hybrid key exchange is a TLS 1.3 feature.
- OpenSSL 3.5 or newer (or another TLS library with ML-KEM support) on any server you control. Check with
openssl version. Your web server must be linked against that version, not just have it installed. For Nginx, runnginx -Vand read the "built with OpenSSL" line.
Cloudflare
Cloudflare enables hybrid post-quantum key agreement for visitors on the domains served through its network, so a modern browser connecting to your Cloudflare-proxied site usually gets X25519MLKEM768 without you doing anything. Two things to check:
- The site is actually proxied (orange cloud) for the hostnames that matter, including subdomains such as
shop.orapi.. - The origin connection. Cloudflare can only use post-quantum encryption to your server if your server supports it. Upgrade the origin using the Nginx or Apache steps below, and set SSL/TLS mode to Full (strict) so the origin connection is encrypted and verified.
Nginx
Once Nginx is built against OpenSSL 3.5 or newer, set the key exchange groups in your server block or http context:
ssl_protocols TLSv1.2 TLSv1.3;
# Post-quantum hybrid first, classical fallbacks after
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;
Test and reload:
sudo nginx -t && sudo systemctl reload nginx
Apache (mod_ssl)
With Apache linked against OpenSSL 3.5 or newer:
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1
sudo apachectl configtest && sudo systemctl reload apache2
Shared hosting and control panels
On cPanel, Plesk or managed hosting you usually can't change the TLS library. Ask your host which OpenSSL version their web servers use and whether ML-KEM hybrid key exchange is enabled. If not, a post-quantum-capable CDN in front of the site protects the visitor-facing connection while you wait.
Verify
openssl s_client -connect yourdomain.com:443 -servername yourdomain.com \
-groups X25519MLKEM768 -tls1_3 -brief </dev/null
You want Negotiated TLS1.3 group: X25519MLKEM768. Then re-run our checker, and check your browser's DevTools Security panel. Full testing options are in how to check your website.
Common problems
| Symptom | Likely cause |
|---|---|
| Nginx won't start: unknown curve | Nginx is linked against an older OpenSSL. Rebuild or install a package built with OpenSSL 3.5+. |
| Still negotiates X25519 | The client doesn't support ML-KEM, or a load balancer or proxy in front of the server terminates TLS. |
| Some old devices can't connect | The classical fallbacks were removed. Keep X25519:prime256v1 in the list. |
Prefer us to do it? The Website Upgrade covers CDN and origin, testing and a before-and-after report.
Frequently asked questions
Will older browsers stop working?
No, as long as you keep classical groups such as X25519 and P-256 in your list. Clients that do not support ML-KEM negotiate one of those instead.
Do I need a new certificate?
No. Key exchange is separate from your certificate. Your existing RSA or ECDSA certificate keeps working.
My host does not let me change server settings. What can I do?
Put the site behind a CDN that supports post-quantum key exchange for visitors, and ask your host when their servers will support ML-KEM for the CDN-to-origin connection.
Is your website quantum-safe?
Free instant check of post-quantum key exchange, TLS and certificates.