Make your website quantum-ready
Make it quantum-ready.
Someone can copy your encrypted traffic today and open it when quantum computers arrive. One setting closes that door for up-to-date browsers. Older ones keep working, without this protection.
Before you start
- Whoever runs your server or hosting can do this. Send them this page.
- Copy the settings file to another folder, such as your home folder, before you change it. Putting it back is the way to undo this.
- Most servers need OpenSSL 3.5 or newer. Debian 13, Ubuntu 26.04 and Red Hat 10.1 include it. Ubuntu 24.04 and older do not. On Red Hat 9, also run sudo update-crypto-policies --set DEFAULT:PQ and restart the web server.
The steps
Check the OpenSSL version with nginx -V. On 3.5 or newer this is on by itself, unless an ssl_ecdh_curve line leaves it out. Replace that line with this one in every site on the server, because the first site decides for all.
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519:secp384r1:prime256v1;Then check the settings and reload.
sudo nginx -t && sudo nginx -s reloadIf it shows an error, or the site stops, put the saved copy back and restart the server program at once.
Apache must run on OpenSSL 3.5 or newer, where this is on by itself. Delete every SSLOpenSSLConfCmd line that names Curves or Groups, in every site on the server, and keep this line.
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1Then check the settings and reload.
sudo apachectl configtest && sudo apachectl gracefulIf it shows an error, or the site stops, put the saved copy back and restart the server program at once.
Run haproxy -vv: it must show OpenSSL 3.5 or newer, or AWS-LC. Add this line to the global section, and delete curves from every bind line.
ssl-default-bind-curves X25519MLKEM768:X25519:P-256:P-384Then check the settings and reload.
sudo haproxy -c -f /etc/haproxy/haproxy.cfg && sudo systemctl reload haproxyIf it shows an error, or the site stops, put the saved copy back and restart the server program at once.
On by itself from version 2.10. Update from caddyserver.com, because the version in Debian and Ubuntu is too old. Delete any curves line from the settings, and the tls { } around it if that leaves it empty.
Then check the settings and reload.
sudo systemctl reload caddyIf it shows an error, or the site stops, put the saved copy back and restart the server program at once.
Needs Windows Server 2025 with the July 2026 update or newer. Run both commands in PowerShell as administrator. The new method should be first in the list. If our check does not change, restart the server.
Enable-TlsEccCurve -Name "X25519_MLKEM768" -Position 0
Get-TlsEccCurveOn by itself for every site behind Cloudflare. If our check says otherwise, set the DNS record to Proxied, and switch on TLS 1.3 under SSL/TLS, Edge Certificates.
CloudFront: on by itself. Load balancer: choose the policy below for the HTTPS listener, after noting the current one. If the load balancer has several HTTPS listeners, plan some downtime: old and new policies cannot share it.
ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09Neither has a switch for this. It depends on the server underneath: ask your hosting company whether it runs OpenSSL 3.5 or newer. If not, placing the site behind Cloudflare protects the part between your visitors and Cloudflare, but not the part to your server.
Check that it worked
openssl s_client -connect example.com:443 -servername example.com -tls1_3 -brief </dev/nullWith OpenSSL 3.5 or newer, the answer names X25519MLKEM768. Run it on the server. The openssl that comes with a Mac cannot do this.
To undo it
Put the saved copy of the settings back, then check and reload again.
Common mistakes
- Listing only the new method. Older browsers then cannot connect at all.
- Adding the new method on an older OpenSSL. NGINX and HAProxy refuse it, but Apache's check misses it and Apache stops.
- Copying a sample that also allows TLS 1.3 only, which turns some visitors away.