Migration guide

Check and enable the hybrid group X25519MLKEM768 on Caddy

Caddy 2.10 and later offer the hybrid post-quantum group X25519MLKEM768 by default. Check your version, keep or restore the default curve list, and verify the result with our check.

Documentation only Last reviewed 2026-12-04

How this guide was validated. Drafted from the Caddy 2.10.0 release notes, the Caddy tls directive documentation and the Caddy source (modules/caddytls/values.go, default curve list X25519MLKEM768, X25519, P-256). Not run on a Caddy server here.

Applies to

  • Caddy 2.10.0 and later (released 2025-04-18), which supports x25519mlkem768 by default
  • TLS 1.3 connections

Before you start

  • Caddy 2.10.0 or later. Check with caddy version.
  • A copy of your current Caddyfile or JSON config.

Steps

  1. Check your Caddy version
    Post-quantum key exchange support arrived in Caddy 2.10.0 and is on by default.
    caddy version

    Expect: v2.10.0 or later.

  2. Look for a curves line in your tls block
    The curves subdirective sets the list of groups Caddy supports, so a curves line without x25519mlkem768 leaves the hybrid group out. Remove the curves line to return to the defaults, or include x25519mlkem768. Caddy recommends not changing the defaults.
    example.com {
        tls {
            curves x25519mlkem768 x25519 secp256r1
        }
    }

    Expect: If you never set curves, there is nothing to change: the default list includes X25519MLKEM768, with X25519 and P-256 (Caddy's source notes that the order is irrelevant).

  3. Reload Caddy
    Validate, then reload without dropping connections.
    caddy validate --config /etc/caddy/Caddyfile
    caddy reload --config /etc/caddy/Caddyfile

    Expect: Valid configuration and a clean reload.

Verify

  1. Check from the command line
    Use an OpenSSL 3.5+ client, or curl built with a TLS library that supports the group.
    openssl s_client -connect example.com:443 -servername example.com -groups X25519MLKEM768 </dev/null 2>&1 | grep 'Negotiated TLS1.3 group'

    Expect: Negotiated TLS1.3 group: X25519MLKEM768

Verify with our check

Run the public checker on your hostname at postquantumverified.com. It opens one TLS 1.3 handshake on port 443 and shows Verified (the server selected the hybrid group X25519MLKEM768), Not post-quantum (it selected a classical group) or Could not check. Each check gets a dated record at /verify/{hostname} that anyone can open again. If the result is not Verified, see Why did my check say Not post-quantum? and Why did my check say Could not check?.

The checker tests the public HTTPS endpoint on port 443 of the exact hostname you enter. Mail (SMTP, IMAP) and other ports are not covered by it.

Roll back

  1. Restore your saved config
    Put back the saved Caddyfile and reload.
    caddy reload --config /etc/caddy/Caddyfile

What this guide does not cover

  • A key-exchange result says nothing about authentication: the certificate and its signature are a separate question, and certificate signatures are not made post-quantum by this change.
  • Only the connection between the client and this endpoint is covered. A CDN or load balancer in front of it terminates the client connection itself. See cdn-edge-and-origin.
  • Clients that do not offer the hybrid group will use a classical group. That is expected.
  • Caddy uses Go's crypto/tls. A Caddy built with an older Go toolchain than its release expects is not covered here.

Sources

Only change systems you own or are authorized to change. Have a person approve each change and keep a rollback.