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 withCURLOPT_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.
References
-
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 -
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 -
Debian package curl in bookworm. https://packages.debian.org/bookworm/curl (accessed 2026-12-05) ↩
-
Debian package openssl in bookworm. https://packages.debian.org/bookworm/openssl (accessed 2026-12-05) ↩
-
Debian package curl in trixie. https://packages.debian.org/trixie/curl (accessed 2026-12-05) ↩
-
Debian package openssl in trixie. https://packages.debian.org/trixie/openssl (accessed 2026-12-05) ↩
-
Ubuntu package curl in jammy. https://packages.ubuntu.com/jammy/curl (accessed 2026-12-05) ↩
-
Ubuntu package openssl in jammy. https://packages.ubuntu.com/jammy/openssl (accessed 2026-12-05) ↩
-
Ubuntu package curl in noble. https://packages.ubuntu.com/noble/curl (accessed 2026-12-05) ↩
-
Ubuntu package openssl in noble. https://packages.ubuntu.com/noble/openssl (accessed 2026-12-05) ↩
-
Ubuntu package curl in resolute. https://packages.ubuntu.com/resolute/curl (accessed 2026-12-05) ↩
-
Ubuntu package openssl in resolute. https://packages.ubuntu.com/resolute/openssl (accessed 2026-12-05) ↩
-
Alpine package curl, branch v3.25. https://pkgs.alpinelinux.org/packages?name=curl&branch=v3.25&arch=x86_64 (accessed 2026-12-05) ↩
-
Alpine package openssl, branch v3.25. https://pkgs.alpinelinux.org/packages?name=openssl&branch=v3.25&arch=x86_64 (accessed 2026-12-05) ↩