Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Vendor: Caddy project · https://caddyserver.com/ · pkg:golang/github.com/caddyserver/caddy/v2 · Last reviewed 2026-12-05 · History

Summary

  • Written in Go on crypto/tls: for clients connecting to Caddy, the hybrid group X25519MLKEM768 is default in TLS 1.3 from 2.10.0 (“Caddy now supports the standardized x25519mlkem768 cryptographic group by default”).1
  • Upstream connections (reverse_proxy): with tls_curves unset, Go’s default applies, which includes X25519MLKEM768 from Go 1.24 (derived from source and Go’s documentation).234
  • Classical groups can be disabled by the administrator with curves in the tls directive and tls_curves in the reverse_proxy HTTP transport.56
  • SecP256r1MLKEM768 and SecP384r1MLKEM1024 are not accepted as curves values; a request is open (checked 2026-12-05).7
  • Certificates Caddy obtains: key_type accepts ed25519, p256, p384, rsa2048 and rsa4096; no ML-DSA value is documented (checked 2026-12-05).5

To require the hybrid group, set curves x25519mlkem768 in the tls directive and tls_curves x25519mlkem768 in the reverse_proxy transport.56

Cryptographic operations

  • Client connections (Caddy is the TLS server): with no curves configured, cfg.CurvePreferences = defaultCurves;2 in 2.10.0 that is tls.X25519MLKEM768, tls.X25519, tls.CurveP256.3 Key agreement is hybrid if the client offers X25519MLKEM768, otherwise classical (X25519 or P-256).
  • The tls directive’s curves option “specifies the list of EC groups to support. It is recommended to not change the defaults.” Values: x25519mlkem768 (labelled “(PQC)”), x25519, secp256r1, secp384r1, secp521r1.5
  • An issue opened 2026-12-03 asking for X25519MLKEM768 support was closed within hours after a reader pointed out that the map in values.go already includes it.7
  • Upstream connections (Caddy is the TLS client): tls_curves “is a list of elliptic curves to support for the upstream connection”, same five values; “an unknown name is a configuration error”.6 Curve preferences are set only when Curves is non-empty, so unset leaves Go’s client default.4 Go: “From Go 1.24, the default includes the X25519MLKEM768 hybrid post-quantum key exchange. To disable it, set CurvePreferences explicitly or use the GODEBUG=tlsmlkem=0 environment variable.”8
  • Certificates: ACME certificates use key_type; authentication is classical.5

Versions

Change Version Package URL Source
Pre-standard X25519Kyber768Draft00 behind a build tag v2.7.5, 2023-10-11 pkg:golang/github.com/caddyserver/caddy/v2@v2.7.5 9
tls_curves on reverse_proxy HTTP transport: “TLS curves can now be configured (potential preparation for post-quantum)” v2.8.0, 2024-05-29 pkg:golang/github.com/caddyserver/caddy/v2@v2.8.0 10
x25519mlkem768 default; builds on Go 1.24 v2.10.0, 2025-04-18 pkg:golang/github.com/caddyserver/caddy/v2@v2.10.0 111
Go 1.26 is the minimum version to build v2.11.6, 2026-10-01 pkg:golang/github.com/caddyserver/caddy/v2@v2.11.6 12
Unknown curves names become configuration errors; release builds use Go 1.27 v2.11.8, 2026-11-04 pkg:golang/github.com/caddyserver/caddy/v2@v2.11.8 13

Configuration

  • Enable: nothing on v2.10.0 or later; setting curves replaces the default, so include the group:5
tls {
	curves x25519mlkem768 x25519 secp256r1
}
  • Disable classical (clients and upstreams not offering X25519MLKEM768 cannot handshake; the hybrid is the only post-quantum name accepted, checked 2026-12-05):567
tls {
	curves x25519mlkem768
}

reverse_proxy backend:443 {
	transport http {
		tls
		tls_curves x25519mlkem768
	}
}

Open work

  • Issue 8496 (2026-12-03): add secp256r1mlkem768 and secp384r1mlkem1024; pull request 8497 is “waiting for review”.7
  • Issue 8065 (2026-09-25) asks for a {http.request.tls.curve} placeholder; pull request 8407 is open; a commenter says an earlier change “was approved for v2.12.0”.1415
  • Go’s TLS 1.3 cipher suite list is not configurable; a maintainer: “is not something Caddy can fix on its own”.7

Distributions

Checked 2026-12-05.

Image Caddy Built on Source
Docker official caddy:2.11-alpine v2.11.9 alpine:3.24; downloads the upstream release binary and verifies its checksum 16
Docker builder image v2.11.9 golang:1.27-alpine3.24 with xcaddy 17

The binary is statically built Go; Alpine’s OpenSSL is not involved in its TLS. Release builds use Go 1.27 from v2.11.8.13

References

  1. Caddy v2.10.0 release notes, 2025-04-18. https://github.com/caddyserver/caddy/releases/tag/v2.10.0 (accessed 2026-12-05) ↩ ↩2

  2. caddyserver/caddy, modules/caddytls/connpolicy.go at commit 172136a (commit “caddytls: Support post-quantum key exchange mechanism X25519MLKEM768”). https://github.com/caddyserver/caddy/blob/172136a0a0f6aa47be4eab3727fa2482d7af6617/modules/caddytls/connpolicy.go (accessed 2026-12-05) ↩ ↩2

  3. caddyserver/caddy, modules/caddytls/values.go at tag v2.10.0. https://github.com/caddyserver/caddy/blob/v2.10.0/modules/caddytls/values.go (accessed 2026-12-05) ↩ ↩2

  4. caddyserver/caddy, modules/caddyhttp/reverseproxy/httptransport.go at commit 172136a. https://github.com/caddyserver/caddy/blob/172136a0a0f6aa47be4eab3727fa2482d7af6617/modules/caddyhttp/reverseproxy/httptransport.go (accessed 2026-12-05) ↩ ↩2

  5. Caddy documentation, tls directive. https://caddyserver.com/docs/caddyfile/directives/tls (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7

  6. Caddy documentation, reverse_proxy directive. https://caddyserver.com/docs/caddyfile/directives/reverse_proxy (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4

  7. caddyserver/caddy issue 8496, caddytls: add secp256r1mlkem768 and secp384r1mlkem1024 curve names, 2026-12-03; and issue 8494, Support post-quantum algorithms, 2026-12-03. https://github.com/caddyserver/caddy/issues/8496 and https://github.com/caddyserver/caddy/issues/8494 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5

  8. Go documentation, GODEBUG history: “Go 1.24 enabled the post-quantum key exchange mechanism X25519MLKEM768 by default. The default can be reverted using the tlsmlkem setting.” https://go.dev/doc/godebug (accessed 2026-12-05) ↩

  9. Caddy v2.7.5 release notes, 2023-10-11. https://github.com/caddyserver/caddy/releases/tag/v2.7.5 (accessed 2026-12-05) ↩

  10. Caddy v2.8.0 release notes, 2024-05-29. https://github.com/caddyserver/caddy/releases/tag/v2.8.0 (accessed 2026-12-05) ↩

  11. caddyserver/caddy, go.mod at tag v2.10.0. https://raw.githubusercontent.com/caddyserver/caddy/v2.10.0/go.mod (accessed 2026-12-05) ↩

  12. Caddy v2.11.6 release notes, 2026-10-01. https://github.com/caddyserver/caddy/releases/tag/v2.11.6 (accessed 2026-12-05) ↩

  13. Caddy v2.11.8 release notes, 2026-11-04. https://github.com/caddyserver/caddy/releases/tag/v2.11.8 (accessed 2026-12-05) ↩ ↩2

  14. caddyserver/caddy issue 8065, Expose the negotiated TLS key exchange (curve) as a placeholder and access-log field, 2026-09-25. https://github.com/caddyserver/caddy/issues/8065 (accessed 2026-12-05) ↩

  15. caddyserver/caddy pull request 8407, caddyhttp: expose negotiated TLS curve as placeholder and log field. https://github.com/caddyserver/caddy/pull/8407 (accessed 2026-12-05) ↩

  16. caddyserver/caddy-docker, 2.11/alpine/Dockerfile at commit 366249a. https://github.com/caddyserver/caddy-docker/blob/366249a1b454ae9a22a58e864e47e8fbc19a9586/2.11/alpine/Dockerfile (accessed 2026-12-05) ↩

  17. caddyserver/caddy-docker, 2.11/builder/Dockerfile at commit 366249a. https://github.com/caddyserver/caddy-docker/blob/366249a1b454ae9a22a58e864e47e8fbc19a9586/2.11/builder/Dockerfile (accessed 2026-12-05) ↩


Edit: Caddy

If you give an email address it is recorded publicly as the author of the commit, and GitHub will link the commit to your account if that address belongs to one.

Edits are reviewed before they appear. By submitting you release your contribution under CC BY-SA 4.0. Read the editorial guidelines first.

This site uses Just the Docs, a documentation theme for Jekyll.