Does Caddy turn on post-quantum key exchange without extra settings?
An operator who wants hybrid post-quantum key exchange on Caddy does not need to add a setting on current releases. Caddy v2.10.0, published 2025-04-18, states that it supports the standardized x25519mlkem768 group by default, and the release notes list the commit that added it. On v2.10.0 or any later release, a site that negotiates TLS with a client that offers this group will use the hybrid key exchange without any change to the Caddyfile. The tls directive's curves option can still name x25519mlkem768 explicitly, which is useful when you want the choice written into your configuration rather than inherited from the default. Caddy's own documentation advises leaving the curve defaults alone unless you have a specific reason to change them.
This answer covers key exchange only. The hybrid group is built on ML-KEM-768 and X25519, and it protects the session keys negotiated during the handshake. It does not change the certificates Caddy issues or the signatures in them, and the Caddy docs and release notes name no ML-DSA or SLH-DSA signature support. Certificates from ACME and the internal issuer remain classical, so the record for any inventory should say that the key exchange is hybrid while the authentication is not. Confirm the negotiated group with a client that supports it, since the community thread for this topic shows a user whose client still fell back to plain X25519.
Platform engineers who run the Caddy build and security leads who record the answer for a tender or audit both need this distinction. The engineer should confirm the Caddy version in the running binary and check whether the build uses Go 1.24 or later, because the default depends on the Go runtime. The security lead should record the answer as key exchange supported by default on v2.10.0 and later, with certificates and signatures out of scope for that claim, and should date it, since the release notes and documentation can change.
How to enable and verify hybrid key exchange in Caddy
This sequence confirms that a Caddy deployment offers the hybrid X25519MLKEM768 key exchange and that a client actually negotiates it. The result is a verified key exchange setting for TLS connections, not a claim about certificates or signatures, which the Caddy documentation does not describe as post-quantum.
Confirm the Caddy version
The platform or operations engineer checks which Caddy version is running with
caddy versionon each server or in the container image. Caddy v2.10.0, published 2025-04-18, is the first release whose notes state that the standardized x25519mlkem768 group is supported by default. The latest release shown on the Caddy releases page on 2026-12-03 is v2.11.9. This step is done when the reported version is v2.10.0 or later. If an older binary is in use, upgrade it before continuing, and confirm the upgrade with the same command.Build with Go 1.24 or later
This step applies only to teams that compile Caddy from source. Caddy commit 172136a added tls.X25519MLKEM768 at the front of the default curve list and raised the minimum Go version to 1.24. The build engineer checks the toolchain with
go versionand builds with a Go release of 1.24 or later. Teams that install prebuilt release binaries can skip this step, because the version check in the previous step already covers them. This step is done when the build output reports Go 1.24 or later and the resulting binary passes the version check.Set the curves option explicitly
The Caddy tls directive documents a curves option whose supported values include x25519mlkem768, marked as post-quantum. On v2.10.0 or later the default already selects this group, so the setting is optional. Teams that want the choice stated in configuration can add
curves x25519mlkem768inside the tls directive of a site, or set it through the global options block. Leave the default curve list alone unless a specific need calls for a change. This step is done when the configuration validates withcaddy validateand the reloaded server reports no errors for that setting.Check for the GODEBUG override
Go 1.24 enables X25519MLKEM768 by default in crypto/tls when no curve preferences are set, and the GODEBUG setting tlsmlkem=0 reverts that default. The operator checks the runtime environment of the Caddy process, including service files, container definitions and shell profiles, for a GODEBUG value that contains tlsmlkem=0. A GODEBUG value that is unset, or that does not include that setting, leaves the default in place. This step is done when the process environment has been checked and no tlsmlkem=0 setting is present. If it is present, remove it and restart the service.
Verify the negotiated key exchange
The tester connects to the server with a client that can report the negotiated group, using a TLS-capable tool such as one built on a recent Go or OpenSSL release, and confirms that the handshake selects X25519MLKEM768 rather than plain X25519. Community reports include a case where a client still negotiated plain X25519, so a client that reports only X25519 means the test has not passed. The client must offer the hybrid group, so check which client and version the test used. This step is done when a recorded handshake shows X25519MLKEM768 as the negotiated group. Record the client, its version and the server version with the result.
Record scope and limits of the result
The security or compliance lead records what the verification covers. The Caddy documentation and release notes name one post-quantum algorithm, the hybrid X25519MLKEM768 key exchange built on ML-KEM-768. They do not mention ML-KEM-1024, or ML-DSA or SLH-DSA signature support. Certificates issued through automatic HTTPS and the signature algorithms in them are a separate question and are not covered by this key exchange check. The record should name the server version, the client used, the handshake result and this scope. This step is done when the record is filed with the configuration and the test output.
Which Caddy versions and settings apply to hybrid key exchange
This table compares the Caddy version, Go requirement, configuration value and revert setting that govern hybrid X25519MLKEM768 key exchange, along with the certificate and signature defaults that stay the same. Read each row against the source named in the table to confirm which release and component it describes. The main takeaway is that key exchange changed in v2.10.0, while signatures and certificates did not change in the sources checked.
| Item | What the sources state | Source |
|---|---|---|
| Default support | Caddy v2.10.0, published 2025-04-18, states that it supports the x25519mlkem768 group by default | Caddy v2.10.0 release notes |
| Commit and build requirement | Commit 172136a added tls.X25519MLKEM768 at the front of the default curve list and raised the minimum Go version to 1.24 | Caddy commit 172136a |
| Configured value | The tls curves option lists x25519mlkem768 as a supported value, marked PQC, alongside x25519, secp256r1, secp384r1 and secp521r1 | Caddy tls directive docs |
| Go runtime default | Go 1.24 enables X25519MLKEM768 by default in crypto/tls when CurvePreferences is nil | Go 1.24 release notes |
| Revert setting | The GODEBUG setting tlsmlkem=0 reverts the Go default that enables X25519MLKEM768 | Go 1.24 release notes |
| Signature defaults | The sources checked do not show ML-DSA or SLH-DSA signature support, and certificate key defaults are set by key_type, not by key exchange | Caddy global options docs |
| Certificate defaults | Caddy's documented key_type options are ed25519, p256, p384, rsa2048 and rsa4096, and the docs state no default value | Caddy global options docs |
| v2.11.9 release notes | The v2.11.9 release notes do not describe key exchange changes; they cover a conflicting client_auth error in merged TLS connection policies | Caddy GitHub releases |
Where the hybrid group is negotiated in a TLS handshake
The diagram starts with a client's ClientHello, which offers a list of key exchange groups that includes X25519MLKEM768. Caddy compares that offer with its own curve list, where x25519mlkem768 is listed first in the default set, and selects the hybrid group if the client also offers it. The ServerHello returns the server's key share, and the two sides complete the hybrid exchange. The certificate signature step is labeled as unchanged, because this feature affects only the key exchange and not the signatures or certificates Caddy presents.
Caddy selects the hybrid X25519MLKEM768 group during the TLS handshake.
What a successful handshake check shows, and what it does not
A correct Caddy configuration and a correct build are necessary but not sufficient evidence of hybrid key exchange. Each check below confirms one link in the chain, and the last card explains why none of them replaces a negotiated handshake.
Checking the Caddy version
Run caddy version on the server and confirm it reports v2.10.0 or later. Caddy v2.10.0, published 2025-04-18, added support for the standardized x25519mlkem768 group by default, so an older binary will not offer it at all, regardless of what the configuration says. The latest release shown on the Caddy releases page on 2026-12-03 is v2.11.9, so compare your binary against that list and record the exact version in your inventory. A version check confirms the feature exists in the binary, not that a live connection uses it.
Checking the curves setting
Inspect the Caddyfile or JSON config for a curves option inside the tls directive. The documented way to request the hybrid group explicitly is curves x25519mlkem768, and Caddy recommends leaving the defaults alone unless you have a specific need. If the setting is absent, the default list applies, so an absent line is not a failure, but a line that pins the list to classical groups such as x25519 or secp256r1 will block the hybrid group. Confirm the exact list in the config your running process loaded, since a file on disk can differ from the one in use.
Checking the Go build and GODEBUG
Caddy's commit 172136a raised the minimum Go version to 1.24 and placed X25519MLKEM768 at the front of the default curve list. Confirm the binary was built with Go 1.24 or later, which you can check with go version -m on the binary. Go 1.24 enables X25519MLKEM768 by default when CurvePreferences is nil, and the GODEBUG setting tlsmlkem=0 reverts that default. Check the process environment for GODEBUG=tlsmlkem=0, because an operator who set it for compatibility will silently disable the hybrid group even on a correct build.
Checking the negotiated group with a TLS client
The only check that confirms negotiation is a handshake from a client that offers the hybrid group, then reading which group the server selected. Use a client build that supports X25519MLKEM768, and inspect the negotiated group in its output or logs. Test from more than one client, because the group chosen depends on what the client offers. The community thread shows the risk of stopping here: a maintainer advised building with Go 1.24 for the post-quantum exchange, yet a user's client still negotiated plain X25519. Record the client name and version alongside each result.
Caddy Community threadA config file alone does not prove negotiation
A config file shows intent, not behavior. Caddy only negotiates the hybrid group when the server runs a binary that supports it, the process reads the setting you expect, the environment does not override the default, and the client offers the group. The community case shows that a correct configuration can still produce a plain X25519 handshake. Treat the config, the version, the build and the negotiated group as four separate records, and mark the feature as verified only when the handshake check confirms the group in use.
Caddy Community threadHow enablement differs for packaged builds and source builds
Official Caddy release binaries at v2.10.0 or later include support for the hybrid X25519MLKEM768 key exchange, and the v2.10.0 release notes state that Caddy supports this standardized group by default. For these binaries, no configuration setting is needed to turn the mechanism on. The default curve list places X25519MLKEM768 ahead of X25519 and CurveP256, so a client that offers the group can negotiate it.
- Version threshold: the default applies from v2.10.0, published 2025-04-18. The latest release checked on 2026-12-03 was v2.11.9.
- No setting required: you do not need to set the
curvesoption for the default to apply. - Explicit option: if you want to pin the group in configuration, the tls directive documents
x25519mlkem768as a value forcurves. - Client side: the server offering the group does not guarantee negotiation. The Caddy community thread from March 2025 describes a case where a client still negotiated plain X25519.
- Version check: run
caddy versionto confirm the binary is v2.10.0 or later.
Confirm the version and the origin of the binary before relying on the default, and test negotiation with the clients your users actually run.
A source build of Caddy depends on the Go toolchain used to compile it. The commit that added X25519MLKEM768 to the default curve list also raised the minimum Go version to 1.24. Go 1.24 documents that X25519MLKEM768 is enabled by default in crypto/tls when no curve preferences are set. A build compiled with a Go version older than 1.24 therefore cannot apply that default, whatever the Caddy source version.
- Toolchain requirement: the Caddy commit 172136a raised the minimum Go version to 1.24.
- Language default: the default comes from crypto/tls in Go 1.24, so an older toolchain lacks it.
- Version boundary: the commit adding the mechanism is part of the v2.10.0 line, so the Go version check applies to source builds on that line and later.
- Verification: check the Go toolchain used for the build with
go versionand confirm the Caddy version withcaddy version. - Rebuild path: rebuild with Go 1.24 or later to obtain the default, then verify the binary again.
Before you assume a source build has the default, check both the Go toolchain and the Caddy revision it was compiled from.
A deployment pinned to a Caddy release earlier than v2.10.0 does not have the default X25519MLKEM768 behavior, because the release notes for v2.10.0 are where the default support was announced. Pinning to a release earlier than that is the only path that is listed as lacking the default in the facts supplied for this topic. The facts do not state whether an older release could have been patched to add the mechanism, so treat an older pinned build as not having the default until you verify it.
- Version boundary: default support is stated from v2.10.0, published 2025-04-18.
- Pinned images and packages: container images, distribution packages and vendored copies can lag behind the release you think you deployed.
- Explicit curve setting: the facts do not state that older releases accept
x25519mlkem768in thecurvesoption, so confirm that against the documentation for the exact version. - Verification: run
caddy versionon the running binary, not on the package name you intended to install. - Upgrade path: moving to v2.10.0 or later is the documented route to the default, and the current release line should be checked against the release page.
Confirm the running version on each host, and do not infer the version from the deployment manifest alone.
Go 1.24 documents a GODEBUG setting, tlsmlkem=0, that reverts the default that enables X25519MLKEM768 in crypto/tls. A Caddy binary built with Go 1.24 or later can therefore lose the default if this setting is present in the environment in which the process runs. This tab matters for operators who set GODEBUG for other compatibility reasons and do not know it affects this behavior.
- Setting and effect: the value
tlsmlkem=0reverts the default that enables X25519MLKEM768 in crypto/tls. - Scope: the setting applies to the process environment, so check the variables that the Caddy service inherits, including those set by systemd units, container runtimes and shell profiles.
- Interaction with curves: the facts do not state how an explicit
curvessetting interacts withtlsmlkem=0, so test that combination rather than assume it. - Verification: check the environment of the running Caddy process, for example with
tr '\0' '\n' < /proc/<pid>/environon Linux, and confirm the variable is absent or set to a value that keeps the default. - Testing: confirm negotiation with a client that offers the group after you change or remove the setting.
If a site works correctly for other reasons but shows plain X25519, look for GODEBUG in the process environment before changing the Caddy configuration.
What Caddy's published material does not cover on hybrid key exchange
The Caddy documentation and release notes reviewed describe one post-quantum option, the hybrid X25519MLKEM768 key exchange, and say little beyond it. The gaps below cover signatures, certificates, the admin endpoint and future groups, and each one is a question to put to the Caddy project before you plan around it.
No ML-KEM-1024 option
The Caddy documentation and release notes name only X25519MLKEM768, which is built on ML-KEM-768 under FIPS 203. Neither the tls directive docs nor the v2.10.0 notes mention ML-KEM-1024. If your policy calls for the higher parameter set, ask the Caddy project whether it is planned and on what timeline, and confirm the curves option list on the version you run, because the list in the docs is the only evidence of what is supported.
tls directive docsNo ML-DSA or SLH-DSA signatures
The hybrid group protects key exchange only. The sources reviewed do not describe ML-DSA or SLH-DSA support for certificates, signatures or artifact verification. Caddy's certificates still follow the key_type setting (ed25519, p256, p384, rsa2048 or rsa4096), and the Sigstore artifacts are signed with ECDSA. Ask the project directly whether post-quantum signature algorithms are on the roadmap, because the key exchange enablement does not extend to authentication.
Signature verification docsNo TLS or mTLS for the admin endpoint
The Caddy API docs place the admin endpoint on localhost:2019 by default and recommend a permissioned unix socket when untrusted code runs on the server. They do not describe TLS or mTLS for that endpoint. Confirm with the project whether the admin API can be protected with transport encryption, and until they answer, restrict access with local binding or socket permissions and do not treat the admin path as covered by the hybrid key exchange setting.
Caddy API docsNo stated plan for other groups
The sources reviewed do not state a plan for key exchange groups beyond x25519mlkem768. The curves list in the tls directive docs includes x25519, secp256r1, secp384r1 and secp521r1 without the PQC marker, and the community thread shows the maintainer pointing users to a Go build rather than a roadmap. Ask the Caddy project which additional post-quantum groups it intends to add and whether they will follow the crypto/tls defaults in Go, so your inventory does not assume support that has not been published.
Community threadWhat can go wrong when enabling hybrid key exchange in Caddy
The most common problem is not a misconfiguration but a client that never offers the hybrid group. Caddy on v2.10.0 or later can negotiate X25519MLKEM768, but the handshake only uses it when the client includes that group in its ClientHello. A March 2025 thread in the Caddy Community forum describes a user whose client still negotiated plain X25519 even after the server was built with post-quantum support. The server did nothing wrong in that case, so the result looks identical to a server that was never upgraded. Before you rely on the setting, confirm with the actual browsers, API clients and internal tools that reach the server, using a client that you can show offers the hybrid group. Do not assume that a client is post-quantum-capable because its operating system or library version is recent.
Build and runtime settings cause the quieter failures. The default hybrid key exchange depends on Go 1.24 or later, because the Caddy commit that added X25519MLKEM768 to the default curve list also raised the minimum Go version to 1.24. A source build made with an earlier Go toolchain will not include the group, and it may not fail loudly. Separately, Go 1.24 enables the hybrid group by default in crypto/tls only when the curve preferences are unset, and the GODEBUG setting tlsmlkem=0 reverts that default. An environment variable inherited from a service unit, container image or CI job can set that flag without anyone noticing. Check the Go version used for the binary and the runtime environment of the running process, not only the version in the release notes.
The third failure is an explicit curves list. Caddy's tls directive lets you set the groups Caddy offers, and if the list omits x25519mlkem768, the hybrid group is removed even on a current build. Hardening guides often copy a curves line from an older configuration, which makes this one easy to miss. Also note that hybrid key exchange does not change certificates. The key_type global option controls the key type for TLS certificates, and it accepts ed25519, p256, p384, rsa2048 or rsa4096. Setting the hybrid curve protects the key exchange only, while certificate signatures remain classical. Confirm both settings separately, and check curves and key_type in the effective configuration that the process loads. After rollout, verify with real clients and record what each one negotiated, because a configuration that looks correct on the file system can still produce classical handshakes.
Questions engineers and vendor-risk reviewers ask about Caddy hybrid key exchange
Is Caddy quantum safe?
Caddy does not claim to be quantum safe, and no certificate or validation in the sources says it is. What the sources do support is narrow: Caddy v2.10.0 and later negotiate the hybrid X25519MLKEM768 key exchange by default, which pairs X25519 with ML-KEM-768 (FIPS 203). That covers the key exchange only. The Caddy documentation and release notes do not mention ML-DSA or SLH-DSA signature support, so certificates and signatures in Caddy remain classical. Treat the key exchange as one supported control, and record the signature and certificate dependencies as open items in your inventory.
Which Caddy version do I need for post-quantum key exchange?
Caddy v2.10.0, published 2025-04-18, is the first release whose notes state that X25519MLKEM768 is supported by default. The commit that added it also raised the minimum Go version to 1.24, so build with Go 1.24 or newer. The latest release shown on 2026-12-03 is v2.11.9, which is the version we would confirm against for your environment. Check the version your binary reports before you assume the default applies, because a build from older source or with an older toolchain will not include the change.
Does enabling post-quantum key exchange in Caddy cost extra?
The sources we checked contain no price figures for Caddy or for enabling this key exchange. Caddy is licensed under Apache-2.0, and the enablement path described in the sources is a version upgrade and, where needed, a Go toolchain upgrade, plus an optional explicit curves setting. The main recurring cost is the engineering time to rebuild, test and roll out the binary. Ask your team or your vendor to itemize build pipeline changes, testing effort, and any support contract you already hold, since those components drive the total.
What breaks when I turn on the hybrid key exchange?
The sources describe one practical failure mode: a client may still negotiate plain X25519 even when the server offers the hybrid group. A community thread from March 2025 describes this case, where the maintainer advised building with Go 1.24 to get the key exchange. Expect the connection to fall back to X25519 when the client does not offer or prefer the hybrid group, so the server-side change alone does not guarantee hybrid use. Test with the clients that matter to you, and confirm the negotiated group rather than assuming it. If you set curves explicitly, make sure the list is what you intend, since the docs recommend leaving the defaults unchanged.
How do I confirm that hybrid key exchange is actually in use?
Confirm it from the outside, by inspecting a live handshake with a client that you know offers the hybrid group, and check that the negotiated group is x25519mlkem768. Verify the binary's version and that it was built with Go 1.24 or newer, and check that the Go GODEBUG setting tlsmlkem=0 is not set, since Go 1.24 documents that setting as reverting the default. If you configure curves explicitly, confirm the value in your Caddyfile matches the documented name. Keep the test result as evidence, with the date, client, server version and Go version recorded.
What should I ask Caddy or the vendor before enabling this?
Ask a specific set of questions and record the answers with dates:
- Which Caddy release and Go toolchain are in the build you run, and does the release notes wording match your environment?
- Does the project plan to add ML-DSA or SLH-DSA signature support for certificates, and on what timeline? The sources do not say.
- Is any setting needed for the hybrid group beyond the v2.10.0 default, and is the tls curves option the recommended way to set it explicitly?
- Are any post-quantum commitments or support terms available in writing for your use?
Ask for the answers in writing, and file them with your inventory, because the sources we checked do not address signatures or a published roadmap.
Can my team enable this ourselves, or do we need outside help?
Your team can make the change if it runs Caddy from a build it controls and has the skills to rebuild with a newer Go toolchain and test handshakes. Outside help is most useful when the Caddy binary is built and shipped through a pipeline you do not own, when the environment has many sites or clients to test, or when you need evidence for a security review. DeployOpen can run a scoping call to agree the scope, deliverables and timeline in writing before any work starts. That call does not include pricing, and DeployOpen does not publish a price list, so a quote follows from the agreed scope.
How DeployOpen works on this
DeployOpen starts from your current Caddy version and build chain, then checks whether the x25519mlkem768 group is actually negotiated in your environment. We scope the work in writing, configure and test the TLS settings, and hand over a documented, repeatable result you can verify.
How we scope
- We record the Caddy version, Go toolchain and any build pipeline before any changes are made.
- We confirm which sites, upstreams and listeners terminate TLS and whether curves is set explicitly.
- Engagements are fixed-scope, with the deliverables and timeline agreed in writing before work starts.
How we build
- We set or verify the curves option with x25519mlkem768 on each relevant TLS site, using the Caddyfile or JSON config.
- We check the GODEBUG tlsmlkem setting and the Go version used to build any custom Caddy binary.
- We test the negotiated group from several client types and record the results, including clients that fall back to X25519.
How we hand over
- You receive the final configuration, the build settings and the exact test commands used to confirm the key exchange.
- We document the Caddy version and Go version the result was verified against, so you can rerun the check after upgrades.
- We note which client and library combinations were tested and which were not, so you can judge your own exposure.
How we support
- Ongoing support and upgrade testing are available as a retainer, covering new Caddy releases and Go toolchain changes.
- We can retest after configuration changes, Caddy upgrades or changes to the client population you serve.
- Ask any provider to confirm which post-quantum algorithms are supported in writing, since the Caddy documentation names only the hybrid X25519MLKEM768 group.

