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

Vendor: curl project · https://curl.se/ · pkg:generic/curl · Last reviewed 2026-12-05 · History

Summary

  • curl does not implement TLS and sets no group list unless asked, so key agreement in TLS 1.3 is the TLS library’s: a curl built against OpenSSL 3.5 or later offers the hybrid group X25519MLKEM768 by default, and an earlier OpenSSL is classical.12
  • No curl release added post-quantum support of its own; no curl commitment about it was found (checked 2026-12-05).
  • Classical groups can be disabled by the user with --curves, or by an application with CURLOPT_SSL_EC_CURVES, on OpenSSL or wolfSSL builds.12
  • Server certificate authentication is whatever the TLS library accepts; curl has no post-quantum setting for it.

To require the hybrid group on an OpenSSL 3.5 or later build, run curl --curves X25519MLKEM768 https://example.com/.1

Cryptographic operations

  • TLS connections: curl is the TLS client, built against OpenSSL or others such as wolfSSL, GnuTLS, BoringSSL or rustls; PHP and other programs reach HTTPS through libcurl. libcurl documents the default group list as “embedded in SSL backend”;2 of --curves: “If this option is set, the default curves list built into OpenSSL are ignored.”1 From OpenSSL 3.5.0 the default list starts with X25519MLKEM768 with a key share; see OpenSSL.
  • SFTP and SCP: use a separate SSH library (libssh2 or libssh); their key exchange support was not checked (2026-12-05).

Versions

Change Version Package URL Source
--curves and CURLOPT_SSL_EC_CURVES added 7.73.0 pkg:generic/curl@7.73.0 12

curl -V lists the TLS library on its first line, for example OpenSSL/3.5.10.

Configuration

Enabling PQC

  • Nothing is needed when the TLS library offers a hybrid group by default.
  • Explicitly, on OpenSSL 3.5 or later; the option takes a colon-separated list and “is available identically in the OpenSSL s_client and s_server utilities”:1
curl --curves X25519MLKEM768:X25519 https://example.com/
  • libcurl, documented for the OpenSSL and wolfSSL backends:2
curl_easy_setopt(curl, CURLOPT_SSL_EC_CURVES, "X25519MLKEM768:X25519");

Disabling classical algorithms

curl --curves X25519MLKEM768 https://example.com/
  • A server without the group fails the handshake; the setting applies to that invocation or handle only. For all OpenSSL programs on a system, set the group list in OpenSSL’s configuration instead.

Distributions

Checked 2026-12-05. Confirm the TLS library of a build with curl -V; distributions can ship curl built against other TLS libraries.

Distribution curl OpenSSL in the distribution Source
Debian 12 (bookworm) 7.88.1 3.0.22 34
Debian 13 (trixie) 8.14.1 3.5.10 56
Ubuntu 22.04 (jammy) 7.81.0 3.0.2 78
Ubuntu 24.04 (noble) 8.5.0 3.0.13 910
Ubuntu 26.04 (resolute) 8.18.0 3.5.5 1112
Alpine 3.25 8.23.0 3.5.10 1314

Proofs

References

  1. curl documentation, --curves, at commit 7799f72. https://github.com/curl/curl/blob/7799f720cb9bd3ce1c1e41d18967816e07238e87/docs/cmdline-opts/curves.md (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6

  2. libcurl documentation, CURLOPT_SSL_EC_CURVES, at commit 7799f72. https://github.com/curl/curl/blob/7799f720cb9bd3ce1c1e41d18967816e07238e87/docs/libcurl/opts/CURLOPT_SSL_EC_CURVES.md (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5

  3. Debian package curl in bookworm. https://packages.debian.org/bookworm/curl (accessed 2026-12-05) ↩

  4. Debian package openssl in bookworm. https://packages.debian.org/bookworm/openssl (accessed 2026-12-05) ↩

  5. Debian package curl in trixie. https://packages.debian.org/trixie/curl (accessed 2026-12-05) ↩

  6. Debian package openssl in trixie. https://packages.debian.org/trixie/openssl (accessed 2026-12-05) ↩

  7. Ubuntu package curl in jammy. https://packages.ubuntu.com/jammy/curl (accessed 2026-12-05) ↩

  8. Ubuntu package openssl in jammy. https://packages.ubuntu.com/jammy/openssl (accessed 2026-12-05) ↩

  9. Ubuntu package curl in noble. https://packages.ubuntu.com/noble/curl (accessed 2026-12-05) ↩

  10. Ubuntu package openssl in noble. https://packages.ubuntu.com/noble/openssl (accessed 2026-12-05) ↩

  11. Ubuntu package curl in resolute. https://packages.ubuntu.com/resolute/curl (accessed 2026-12-05) ↩

  12. Ubuntu package openssl in resolute. https://packages.ubuntu.com/resolute/openssl (accessed 2026-12-05) ↩

  13. Alpine package curl, branch v3.25. https://pkgs.alpinelinux.org/packages?name=curl&branch=v3.25&arch=x86_64 (accessed 2026-12-05) ↩

  14. Alpine package openssl, branch v3.25. https://pkgs.alpinelinux.org/packages?name=openssl&branch=v3.25&arch=x86_64 (accessed 2026-12-05) ↩


Edit: curl

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.