How to deploy post-quantum cryptography

Updated: December 3, 2026

This is a brief howto for enabling pqcrypto in software used primarily by sysadmins.

iMessage

Apple uses PQ3 which is post-quantum secure, on iOS 17.4, iPadOS 17.4, macOS 14.4, and watchOS 10.4, and later. So just be sure to keep your devices updated.


nginx webserver

Add ssl_ecdh_curve into a server block such as:

server {
  listen 443 ssl;
  server_name example.com;
  ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;
}


OpenSSH

OpenSSH's top 2 default key agreements are post-quantum ready. If you use Linux and your Linux distro doesn't support either one, then upgrade to the latest distro version or switch. If you prefer Streamlined NTRU Prime over ML-KEM, you can set the following option in sshd.conf:

KexAlgorithms ^sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com

For client usage, you would put this into ~/.ssh/config:

Host *
  KexAlgorithms ^sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com

These optional settings promote sntrup761x25519-sha512 to the default cipher, but they aren't necessary.


Postfix mail server

You need to enable TLS 1.3 in main.cf with:

smtp_tls_security_level = may
smtpd_tls_security_level = may
smtp_tls_loglevel = 1
smtpd_tls_loglevel = 1
smtp_tls_ciphers = high
smtpd_tls_ciphers = high
smtp_tls_protocols = TLSv1.2, TLSv1.3
smtpd_tls_protocols = TLSv1.2, TLSv1.3

Then watch the logfile for lines like (emphasis added):

Dec 3 18:27:30 mail postfix/smtp[34140]: Trusted TLS connection established to mail.example.com[192.0.2.42]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature ECDSA (secp384r1) server-digest SHA384


TinySSH

TinySSH was the first SSH server to support post-quantum key agreement. You don't need to enable it.


Web browsers

If you use Firefox, Chromium, Chrome, Safari, Netsurf, dillo, or some other browser, check your browser's support for post-quantum key agreement using the IANIX browser test.


WireGuard VPN

You have two options, and both may be used together: either set a PreSharedKey (PSK) in each peer's configuration, or use Rosenpass to establish a pqcrypto key in your tunnel. To set a PSK, issue either `wg genpsk` or `openssl rand -base64 32` and place the output into the configuration of both tunnel peers like so:

PreSharedKey = rD5R4X=m4s...

This is an intentionally bogus key to prevent its naive use. Please note that a PSK isn't true pqcrypto but it will protect you from quantum attacks if the key is transmitted safely using pqcrypto through SSH.

"Powered by Post Quantum Cryptography"