Skip to main content
Re:Linked

My starting points on migrating toward PQC

Also available in: 中文 English (here!)

· #tech · ~0.5k words · Views: ...

NSA posted an advisory.

The advisory is clear: go to ML-KEM and ML-DSA.

Filippo also gave a great summary on the other direction: leave EC 256 and 25519.

What to keep? What to remove?

If an algorithm and key-size pair isn't in the table below, remove or replace it.

  • 💚 - New post-quantum algorithms
  • 🟢 - No need to change for now
  • 🟡 - Valid mitigation, but may need changes in the near future
  • 🔴 - Should already have been dropped
TypeNameGood NumbersComments
Key agreementML-KEM1024 (best)
768/512 (ok)
💚 Post-quantum algorithm.
Key agreementECDH384/521 (ok)🟡 X25519 is comparable to EC-256, and should be dropped.
Key agreementDHDon't use🔴 Deprecated.
SignatureML-DSA87 (best)
65/44 (ok)
💚 Post-quantum algorithm.
SignatureECDSA/EdDSAECDSA 384/521 (ok)🟡 All EdDSA curves including Ed25519 are deprecated.
SignatureRSA3072/4096 (ok)
2048 (legacy)
🟡 Large enough to remain safe for now.
SymmetricAES256🟢 Symmetric algorithms are still fairly quantum-resistant (compared to the asymmetric ones).
HashingSHA384/512🟢 Feel safe to keep using them.

For key exchange, you may see hybrids of two algorithms above (for example, mlkem768x25519). A hybrid is okay to keep if either half is safe, because an attacker has to break both to break the whole algorithm.

What to do?

Test and check your software version compatibility before applying!

TLS 1.3

Standard TLS 1.2 cannot negotiate these post-quantum groups, so start by requiring TLS 1.3.

A Traefik configuration sample would be like:

tls:
  options:
    default:
      minVersion: VersionTLS13

TLS Key Agreement Method (for TLS 1.3 only)

As of now there are three post-quantum hybrid algorithms.

A Traefik configuration sample would be like:

tls:
  options:
    default:
      curvePreferences:
        - X25519MLKEM768
        - SecP256r1MLKEM768
        - SecP384r1MLKEM1024
        # for better compatibility, also:
        - CurveP384
        - CurveP521

TLS Certificate Key Type

To leave EC-256, you can request EC-384 certificates.

In Traefik, this parameter is in the static configuration:

certificatesResolvers:
  your-resolver-name:
    acme:
      keytype: EC384
# or CLI parameter: --certificatesresolvers.your-resolver-name.acme.keytype=EC384

This may also help you move away from the RSA-2048 CA certificates in-chain.

SSH Keys

The post-quantum algorithm mldsa44-ed25519 requires OpenSSH 10.6 (released in October 2026). If it's not supported (normal for now), ecdsa should be relatively safe. If that's still not the case, you may want to resort to RSA-4096.

Easy to generate one:

ssh-keygen -t mldsa44-ed25519
# or
ssh-keygen -t ecdsa -b 384
# or
ssh-keygen -t rsa -b 4096

SSH Key Agreement Method

From OpenSSH 10.0 on, a post-quantum key agreement algorithm is used by default, which does not require configuration changes as long as both the client and server are upgraded.

Also, there is a more radical way: update KexAlgorithms in sshd_config or ~/.ssh/config (check whether they are supported first!):

KexAlgorithms mlkem768x25519-sha256,mlkem768nistp256-sha256,sntrup761x25519-sha512,ecdh-sha2-nistp384,ecdh-sha2-nistp521

Comments

You may optionally provide your email address to receive email notifications about comment replies.