Cloud SecurityGoogle CloudLinuxDevSecOps

Moving to post-quantum cryptography: what engineers can validate and fix today

Jorge Liauw Calo
Jorge Liauw CaloLead Security Engineer @ Google Cloud
•7 min read
Moving to post-quantum cryptography: what engineers can validate and fix today

Let’s start with the most important fact: today, classical encryption is not broken. Recent research and a joint security statement note that new discoveries “impact the security of some cryptography currently in use,” while also assessing that these advances “do not present an immediate and widespread threat to that cryptography.” Quantum computers that can break RSA or elliptic-curve encryption in real time do not exist yet, so your TLS certificates, signatures, and live sessions are not being cracked today.

So why are security teams preparing right now?

Because one quantum threat is already active: Store Now, Decrypt Later (SNDL). Even with modern TLS and Perfect Forward Secrecy (ECDHE), an attacker can record encrypted traffic today and store it cheaply. Years from now, once quantum hardware matures, they can decrypt it. Does your team handle intellectual property, health records, financial data, or secrets that must stay private past 2030? If so, locking down data in transit is the clearest step you can take right now.

This guide highlights key takeaways from Google Cloud’s Post-Quantum Cryptography guide and Cloudflare’s Project Quantum Leap. It also gives you practical commands to audit Linux, NGINX, Apache, and Google Cloud Load Balancers today.


Google’s Quantum Threat Model and the roadmap to 2029

Google bases its Post-Quantum Cryptography (PQC) strategy on the Google Quantum Threat Model. The goal is a full migration by 2029, well ahead of 2030 to 2035 regulatory deadlines, across three core areas:

  1. Mitigating Store Now, Decrypt Later (SNDL) risks: Protect today’s encrypted traffic so future quantum computers cannot decrypt harvested sessions.
  2. Ensuring integrity against forgery: Move digital signatures (certificates, code signing, and identity tokens) to quantum-safe algorithms. This stops attackers from forging identities or tampering with software supply chains later.
  3. Building cryptographic agility: Design key management, hardware roots of trust, and libraries so teams can swap algorithms with minimal effort.

(Note: Symmetric ciphers like AES-128, AES-256, and ChaCha20 are not broken by quantum computers. Focus on asymmetric key exchange first, and digital signatures second.)

Google Cloud Post-Quantum Cryptography roadmap to 2029 showing Store Now Decrypt Later mitigation, Integrity and non-repudiation, and Foundations
Google's PQC migration roadmap toward the 2029 target, starting immediately with Store Now, Decrypt Later mitigation across workloads, admin flows, and data ingestion.

What you can do today: lock down data in transit

If you take only one action from this post, make it this: close the Store Now, Decrypt Later (SNDL) gap on your edge and clients.

  • Upgrade TLS to 1.3 with hybrid key exchange (X25519MLKEM768): This pairs classical X25519 with NIST-standard post-quantum ML-KEM-768. It blocks passive traffic harvesting right away without breaking older clients, which simply fall back to X25519. In Chrome enterprise setups with stricter rules, you can also enable ML-KEM-1024.
  • Route traffic through Google Cloud Load Balancers: Application Load Balancers and External Proxy Network Load Balancers support hybrid X25519MLKEM768 on frontend TLS 1.3 by default. Placing a Cloud Load Balancer in front of older Linux VMs gives you instant PQC protection at the edge, even before OS upgrades.
  • Enforce modern TLS with Organization Policies and SSL Policies:
    • Use Google Cloud’s Restrict TLS Version Organization Policy (constraints/gcp.restrictTLSVersion) to block TLS_VERSION_1 and TLS_VERSION_1_1 across GCP services.
    • Attach a Cloud Load Balancer SSL Policy (--min-tls-version=1.3) on workloads whose clients already support TLS 1.3:
# Create a TLS 1.3 SSL policy on Google Cloud Load Balancing
# (Post-quantum X25519MLKEM768 key exchange is enabled by default)
gcloud compute ssl-policies create pqc-tls13-policy \
  --profile=RESTRICTED \
  --min-tls-version=1.3

Hands-on: how to audit your systems today

Before changing any config, check what TLS version and key exchange group your endpoints and Linux hosts currently negotiate.

1. Test any live HTTPS endpoint (openssl s_client)

Want to check if a site, API, or Google Cloud Load Balancer already uses TLS 1.3 with X25519MLKEM768? Run openssl s_client from a host with OpenSSL 3.5 or newer. OpenSSL 3.5+ includes native ML-KEM support out of the box, with no extra providers needed:

# Check your local OpenSSL version (3.5+ required for native X25519MLKEM768)
openssl version

# Inspect the negotiated TLS version, cipher, and key exchange group
openssl s_client -connect your-domain.example.com:443 \
  -tls1_3 \
  -groups X25519MLKEM768:X25519 \
  -brief </dev/null 2>&1 | grep -E "Protocol|Ciphersuite|Server Temp Key|Peer signature"

What to look for in the output:

  • Quantum-safe hybrid active: Protocol version: TLSv1.3 and Server Temp Key: X25519MLKEM768 (some OpenSSL builds print ML-KEM-768 or X25519MLKEM768, 1216 bits).
  • Classical only (still vulnerable to SNDL): Server Temp Key: X25519, 253 bits or ECDH, prime256v1, 256 bits.

2. Check your Linux distribution’s OpenSSL support

On your Linux servers, check which OpenSSL version is installed and whether X25519MLKEM768 is natively available:

# 1. Check OS and OpenSSL version
cat /etc/os-release | grep PRETTY_NAME
openssl version

# 2. List supported TLS key exchange groups and check for ML-KEM
openssl list -tls-groups 2>/dev/null | grep -iE "mlkem|x25519"
  • Native X25519MLKEM768 out of the box (OpenSSL 3.5+): Debian 13 (Trixie), Ubuntu 25.04+ / 26.04 LTS, RHEL 10 / AlmaLinux 10 / Rocky Linux 10, Fedora 42+.
  • Older LTS distributions (OpenSSL 3.0 / 3.2): Ubuntu 22.04/24.04 LTS, Debian 12, and RHEL 9 do not ship OpenSSL 3.5 by default. On those hosts, terminate TLS at a Google Cloud Load Balancer (or Cloudflare edge). You get native X25519MLKEM768 today while planning your OS upgrade.

Configuring TLS 1.3 + X25519MLKEM768 on NGINX and Apache

Once your web server is linked against OpenSSL 3.5+, enabling hybrid post-quantum key exchange takes just two lines of configuration.

NGINX: validate and enable hybrid PQC

First, check which OpenSSL library NGINX was compiled against and inspect your current TLS directives:

# Verify NGINX is built/linked with OpenSSL 3.5+
nginx -V 2>&1 | grep -i openssl

# Audit existing TLS protocol and curve settings across all sites
grep -rnE "ssl_protocols|ssl_ecdh_curve" /etc/nginx/

Next, update your HTTPS server (or http) block to require TLS 1.3 and prefer X25519MLKEM768. Older clients fall back cleanly to X25519 or prime256v1:

server {
    listen 443 ssl;
    http2 on;
    server_name your-domain.example.com;

    ssl_certificate     /etc/letsencrypt/live/your-domain.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/your-domain.example.com/privkey.pem;

    # Enforce TLS 1.3 (or "TLSv1.2 TLSv1.3" temporarily if legacy clients still require 1.2)
    ssl_protocols TLSv1.3;

    # Prefer post-quantum hybrid key exchange, falling back cleanly for older clients
    ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;
    ssl_prefer_server_ciphers off;
}

Test and reload NGINX without downtime:

sudo nginx -t && sudo systemctl reload nginx

Apache (apache2 / httpd): validate and enable hybrid PQC

First, confirm which OpenSSL version mod_ssl uses and inspect your current TLS configuration:

# Debian/Ubuntu (use "httpd" instead of "apache2" on RHEL/Fedora)
apache2 -V | grep -iE "Server version|SSL"
ldd /usr/lib/apache2/modules/mod_ssl.so | grep libssl

# Audit existing SSLProtocol and Groups settings
grep -rnE "SSLProtocol|SSLOpenSSLConfCmd" /etc/apache2/ /etc/httpd/ 2>/dev/null

Then update your VirtualHost or ssl.conf to enable TLS 1.3 and configure X25519MLKEM768 via SSLOpenSSLConfCmd Groups:

<VirtualHost *:443>
    ServerName your-domain.example.com

    SSLEngine on
    SSLCertificateFile    /etc/letsencrypt/live/your-domain.example.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/your-domain.example.com/privkey.pem

    # Enforce TLS 1.3 (or "-all +TLSv1.2 +TLSv1.3" temporarily if legacy clients still require 1.2)
    SSLProtocol -all +TLSv1.3

    # Enable hybrid post-quantum key exchange with classical fallback
    SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1
</VirtualHost>

Test and reload Apache:

# Debian/Ubuntu
sudo apachectl configtest && sudo systemctl reload apache2

# RHEL/Fedora
sudo httpd -t && sudo systemctl reload httpd

After reloading NGINX or Apache, re-run the openssl s_client check from Step 1 and verify Server Temp Key: X25519MLKEM768 appears in the handshake output.


Official resources & further reading

Jorge Liauw Calo
Written By

Jorge Liauw Calo

Lead Security Engineer at Google Cloud (Google Cybershield) with 13+ years of experience in Cybersecurity across highly regulated industries including Semiconductor, Banking, Fintech, and Insurance. Active member of the Google Cloud Community BeNeLux and Google Cloud Security Community Amsterdam.