Which GnuTLS settings turn on post-quantum algorithms today
In GnuTLS, post-quantum key exchange groups exist only in builds made with leancrypto, which is enabled with configure --with-leancrypto. That option is off by default and needs leancrypto 1.2.0 or later. Even in such a build, the post-quantum groups are not part of the NORMAL priority set, so they must be named explicitly in a priority string or in the system configuration. Operators, platform teams and vendor-risk reviewers should confirm both points before treating a deployment as post-quantum capable. This section reflects sources checked on 2026-12-03 and 2026-12-04. The GnuTLS NEWS file on master lists 3.8.14 (released 2026-11-18) as the newest release, while the gnutls.org front page on the same date still named 3.8.13 (released 2026-04-29) as the latest. Confirm which release you are running with gnutls-cli --version and check the release notes for the version you deploy.
To enable the hybrid groups, the engineer who runs GnuTLS adds them to a priority string, for example NORMAL:-GROUP-ALL:+GROUP-X25519-MLKEM768:+GROUP-X25519, and applies it with the application's priority setting or system-wide with default-priority-string in the [overrides] section of the system configuration file. The hybrid group names are X25519-MLKEM768, SECP256R1-MLKEM768 and SECP384R1-MLKEM1024, and each is compiled in only when the leancrypto support is present. In a GnuTLS 3.8.12 test reported in GnuTLS issue 1828, a server using a similar string negotiated plain X25519 unless FFDHE2048 was also listed, and the thread gave no resolution. Test the negotiated group with a client on your own build rather than relying on the configuration alone.
Confirm that the system configuration file in use is the one you edited. gnutls_get_system_config_file() returns its path, and the GNUTLS_SYSTEM_PRIORITY_FILE environment variable can change it. Setting GNUTLS_SYSTEM_PRIORITY_FAIL_ON_INVALID to 1 makes the library fail on unknown options, which catches typos in group names. The system file can disable algorithms but cannot re-enable anything disabled at compile time, so a build without leancrypto will not gain the groups from configuration. Signature keys are a separate matter: ML-DSA support in certtool and the library is documented, but the sources reviewed do not show a priority keyword that selects ML-DSA certificates, so confirm that with the project before depending on it.
Which GnuTLS versions and build options enable which post-quantum settings
This table lists each GnuTLS release from 3.8.8 to 3.8.14 with the post-quantum features it added and the build option that gates them. Read it to confirm whether your installed version can offer a given group or signature algorithm before you write a priority string. The main takeaway is that hybrid key exchange needs a build with leancrypto, and that leancrypto became the only post-quantum provider in 3.8.10.
| Version (release date) | Post-quantum support added | Build option needed | What to confirm |
|---|---|---|---|
| 3.8.8 (2024-11-05) | Experimental X25519MLKEM768 and SecP256r1MLKEM768 key exchange in TLS 1.3 | Not stated in the NEWS entry reviewed; confirm against your build configuration | Whether your build exposes these groups by running the library's group list |
| 3.8.9 (2025-02-07) | Experimental leancrypto provider; ML-KEM-1024 as the hybrid SecP384r1MLKEM1024; ML-DSA in the library and certtool | --with-leancrypto or --with-liboqs; leancrypto 1.2.0 or later for the configure option | That the build was compiled with leancrypto and not only liboqs |
| 3.8.10 (2025-07-08) | leancrypto made the sole post-quantum provider; X25519Kyber768Draft00 removed; ML-DSA-44, ML-DSA-65 and ML-DSA-87 allowed in TLS | leancrypto is the only provider, so the build must include it | That any configuration still naming X25519Kyber768Draft00 is updated, since the group no longer exists |
| 3.8.14 (2026-11-18) | gnutls_pubkey_import_mldsa_raw and gnutls_pubkey_export_mldsa_raw for raw FIPS 204 public keys | Not stated in the NEWS entry reviewed; confirm against your build | Whether your applications call these functions before relying on raw ML-DSA key handling |
How to enable a hybrid group in GnuTLS step by step
This sequence confirms that a GnuTLS build includes the leancrypto provider, selects a hybrid post-quantum key exchange group, applies it through a priority string or system configuration, and verifies with a test connection which group was actually negotiated. Each step ends with a check that shows whether the previous step worked.
Confirm the build includes leancrypto
Check how the GnuTLS build was configured. The configure script takes --with-leancrypto, which is off by default and requires leancrypto 1.2.0 or later. Run gnutls-cli --list and confirm the hybrid group names appear in the Groups output. If they are absent, the build lacks the provider and must be rebuilt with the flag. As a source-level check, the groups.c file compiles X25519-MLKEM768, SECP256R1-MLKEM768 and SECP384R1-MLKEM1024 only when HAVE_LEANCRYPTO is defined. This step is closed when the hybrid names are listed in the build's group output.
Choose the hybrid group name
Select one of the three hybrid groups supported by the library: X25519-MLKEM768, SECP256R1-MLKEM768 or SECP384R1-MLKEM1024. The first two are the most commonly discussed options in the sources reviewed, but the choice depends on the peers you need to interoperate with and on your own policy. The SECP384R1-MLKEM1024 option is offered only as a hybrid, since ML-KEM-1024 is not available as a standalone TLS group. Confirm with your peers which group they support before committing. This step is closed when you have written down one group name and the list of peers it must work with.
Set a priority string or system configuration
Apply the chosen group in one of two ways. For an application, pass a priority string such as NORMAL:-GROUP-ALL:+GROUP-X25519-MLKEM768:+GROUP-X25519, which restricts the group list to the hybrid plus X25519 as a fallback. For a system-wide default, add default-priority-string under the [overrides] section of the system configuration file, which is /etc/gnutls/config by default unless the build changed it. The GNUTLS_SYSTEM_PRIORITY_FILE environment variable can point to another file at run time. Note that the system file cannot re-enable anything disabled at compile time. This step is closed when the priority string or the override line is saved and the application or library reads it.
Confirm the active configuration file
Verify that GnuTLS is reading the file you edited. The function gnutls_get_system_config_file() returns the path of the configuration file in use, so a short test program or the calling application's logs can show that path. Setting GNUTLS_SYSTEM_PRIORITY_FAIL_ON_INVALID to 1 makes the library exit on unknown options, which helps catch typos. Without it, unknown options and sections are skipped silently. The configure --sysconfdir setting also changes the default location in builds from 3.8.11 onward. This step is closed when the path returned matches the file you changed.
Test the connection with gnutls-cli
Run gnutls-cli against a server that supports the chosen hybrid group, using the same priority string as the application. Two caveats from GnuTLS issues apply here. Issue 1602 reports that a priority string listing X25519-MLKEM768 before X25519 failed with TLS 1.3 only in gnutls-cli, while listing X25519 first, pairing the hybrid with SECP256R1, or having no TLS version restriction succeeded, so test with and without a TLS version restriction. Issue 1828, filed against 3.8.12, reports that NORMAL:-GROUP-ALL:+GROUP-X25519-MLKEM768:+GROUP-X25519 negotiated plain X25519 unless +GROUP-FFDHE2048 was also listed, and no resolution was recorded in the sources reviewed. This step is closed when the handshake completes with the test settings you chose.
Check the negotiated group
Confirm which group the connection actually used. Use gnutls-cli's output, which reports the key exchange group, or the logging facilities in your application, to read the negotiated group name. The result should show the hybrid group. If the handshake reports plain X25519, SECP256R1 or another classical group, the hybrid was not selected, so return to the priority string and the issue 1828 and 1602 caveats above. Record the GnuTLS version, the build flags, the priority string and the negotiated group name together, because the result depends on those settings. This step is closed when the negotiated group is recorded as the hybrid name.
Why NORMAL does not include ML-KEM groups and how priority strings select them
The NORMAL priority keyword does not select a post-quantum key exchange in GnuTLS. In the master source checked on 2026-12-03, the NORMAL group list in lib/priority.c starts with SECP256R1, SECP384R1 and SECP521R1 and then includes X25519, X448 and the FFDHE groups. The portion of that file we fetched contained no ML-KEM group. To use one, you add it explicitly. The hybrid names in lib/algorithms/groups.c are X25519-MLKEM768, SECP256R1-MLKEM768 and SECP384R1-MLKEM1024, and they exist only in builds compiled with HAVE_LEANCRYPTO. Confirm that your build defines it before you rely on any of them.
Group selection works by removing and then adding. The pattern NORMAL:-GROUP-ALL:+GROUP-X25519-MLKEM768:+GROUP-X25519 first clears the group list and then adds the hybrid and the classical X25519 group in order. The classical keywords are GROUP-SECP256R1 through GROUP-SECP521R1, GROUP-X25519, GROUP-X448 and GROUP-FFDHE2048 through GROUP-FFDHE8192. The priority strings page fetched on 2026-12-03 did not mention ML-KEM or ML-DSA keywords, so the hybrid names above come from the source and not from that page. GnuTLS issue 1828 reports a server configured this way that negotiated plain X25519 unless +GROUP-FFDHE2048 was also listed, and the report gave no resolution. Test the negotiated group in your own environment rather than assuming the order you wrote is the order used.
The default priority string is set in the [overrides] section with default-priority-string, and the GnuTLS manual says its compile-time value is usually NORMAL. Applications can override it through their own code by calling gnutls_set_default_priority or gnutls_set_default_priority_append, which the manual recommends for setting algorithm preferences. Check both places when you configure a host, because an application that sets its own priority will ignore the system value. To find which configuration file is in use, call gnutls_get_system_config_file().
How the configuration differs for applications, system-wide policy and ML-DSA certificates
An application sets the algorithms it will negotiate by passing a priority string to GnuTLS when it creates a session. The manual tells applications to start from the defaults provided by gnutls_set_default_priority or gnutls_set_default_priority_append, then add or remove keywords as needed. In the manual, the NORMAL keyword means all known-to-be-secure ciphersuites, and without NONE the default TLS versions are TLS 1.2, TLS 1.1 and TLS 1.0 with X.509 as the default certificate type. Post-quantum hybrid groups are not part of that default list, so an application that wants them has to name them.
- Adding a hybrid group explicitly: A priority string such as
NORMAL:-GROUP-ALL:+GROUP-X25519-MLKEM768:+GROUP-X25519restricts the groups to the hybrid and its classical partner. The hybrid group names are compiled in only whenHAVE_LEANCRYPTOis defined, so the build must include the provider. - Including a classical fallback: GnuTLS issue 1828, filed against 3.8.12, reports that the example above negotiated plain X25519 unless
+GROUP-FFDHE2048was also listed. The message announcing it gave no resolution. - TLS version interaction: GnuTLS issue 1602 reports that a priority string listing
X25519-MLKEM768beforeX25519with TLS 1.3 only failed in gnutls-cli, while listing X25519 first or having no TLS version restriction succeeded. - Signature keywords:
SIGN-ALLenables all signature algorithms fromNORMAL. The manual says SIGN keywords are considered only for TLS 1.2 and later. - Version selection:
VERS-TLS1.3selects TLS 1.3, andVERS-TLS-ALLrefers to all TLS versions.
Check the exact priority string your build accepts by running the test client against your own server, and record the negotiated group and version in your test results.
GnuTLS reads a system-wide configuration file in INI format. By default it is /etc/gnutls/config, and it can be changed at compile time or at run time with the GNUTLS_SYSTEM_PRIORITY_FILE environment variable. Since 3.8.11 the default location follows the configure --sysconfdir setting rather than being hard-coded. The file can set a default priority string under the [overrides] section with the default-priority-string key, for example default-priority-string = SECURE128:-VERS-TLS-ALL:+VERS-TLS1.3. The compile-time default is usually NORMAL.
- Disabling, not enabling: The system file can disable algorithms and protocols or mark them insecure, but it cannot re-enable anything disabled or marked insecure at compile time.
- Allowlist mode: Setting
override-mode = allowlistin[global]switches the file to allowlist behavior, wheretls-enabled-groupenables a group. The manual describes allowlist mode as intended for operating system vendors and hard to use correctly, and says blocklisting and allowlisting options cannot be mixed. - Disabling groups:
tls-disabled-groupdisables a group for TLS and DTLS in blocklist mode. - Unknown options: Setting
GNUTLS_SYSTEM_PRIORITY_FAIL_ON_INVALIDto1makes the library exit on unknown configuration options. Otherwise unknown options and sections are skipped, which can hide a typo. - Confirming the file in use:
gnutls_get_system_config_file()returns the path of the configuration file in use.
Confirm on each host which file is read and what it contains, because an application may or may not override the system default.
ML-DSA certificates are created with certtool, not with a priority string. GnuTLS 3.8.9 added ML-DSA signature support in the library and certtool as defined in FIPS 204, and 3.8.10 supports all ML-DSA private key formats, following draft-ietf-lamps-dilithium-certificates-12. The --key-format option applies to ML-DSA keys and selects whether the output contains a seed, an expanded key or both. Choose the format your consuming systems accept, and check that before issuing certificates.
- Key format choice:
--key-formattakes seed, expanded or both. The manual does not say which format a given peer requires, so confirm it with the systems that will read the key. - Signature keywords in TLS: The
SIGN-ALLkeyword and other SIGN keywords apply only to TLS 1.2 and later, so an ML-DSA certificate used on a TLS 1.0 or 1.1 connection will not be selected. - ML-DSA variants in TLS: GnuTLS 3.8.10 allowed ML-DSA-44, ML-DSA-65 and ML-DSA-87 to be used in TLS. Confirm which variant your peers negotiate.
- Raw public keys: GnuTLS 3.8.14 added
gnutls_pubkey_export_mldsa_rawandgnutls_pubkey_import_mldsa_rawfor raw FIPS 204 public keys. - No SLH-DSA: The NEWS entries reviewed for 3.8.8 to 3.8.14 do not mention SLH-DSA (FIPS 205), so do not plan certificates around it on that basis.
Confirm the key format, the variant and the TLS version with the systems that will validate these certificates before you issue them.
What GnuTLS has not published and what to ask the project or your distribution
The GnuTLS website, README and NEWS say little about post-quantum plans, and the key size documentation does not mention post-quantum algorithms at all. The cards below list each gap as of 2026-12-03 and the question to put to the project or your distribution before relying on a setting.
No published post-quantum statement
As of 2026-12-03 the GnuTLS website front page and README contain no post-quantum, FIPS or roadmap statement. The only roadmap-like item found is a December 2024 list post by Daiki Ueno saying 3.8.9 was planned with initial ML-DSA support in the following year. Ask the project whether a current, dated roadmap exists and whether it covers ML-KEM and ML-DSA defaults, not only the initial 2024 plan.
GnuTLS websiteNo SLH-DSA in recent releases
The GnuTLS NEWS file for 3.8.8 through 3.8.14 contains no mention of SLH-DSA (FIPS 205), so no SLH-DSA support is documented in that range. Anyone who needs a hash-based signature option for long-lived certificates should ask the project whether SLH-DSA is planned, in which release, and whether it will be reachable through priority strings.
GnuTLS NEWSML-KEM groups absent from NORMAL
The NORMAL profile in lib/priority.c, as read on 2026-12-03, does not include ML-KEM groups. GnuTLS issue 1828, filed in March 2026 against 3.8.12, reports that a server set to NORMAL:-GROUP-ALL:+GROUP-X25519-MLKEM768:+GROUP-X25519 negotiated plain X25519 unless +GROUP-FFDHE2048 was also listed, and the message gave no resolution. Ask whether this behavior is fixed in your build and whether it will be changed in NORMAL.
Issue 1828 reportKey size page omits post-quantum
The GnuTLS key size page maps RSA, DH and SRP parameter sizes and ECC key sizes to the MEDIUM, HIGH and ULTRA profiles. It mentions quantum computers only as a possible cause of total failure of current public key systems and does not discuss post-quantum algorithms. Ask the project which key size guidance applies to ML-KEM and ML-DSA keys, and whether the table will be updated.
Key size manual pageFIPS and PQ not linked in NEWS
The NEWS entries reviewed for 3.8.1 and 3.8.6 cover FIPS 140-3 requirements such as the extended master secret and PBKDF2-based PKCS#12 MAC, but they do not mention FIPS together with ML-KEM or ML-DSA. If your compliance evidence needs a FIPS-validated post-quantum configuration, ask the project and your distribution whether one exists, which module it lives in, and which versions carry the validation.
GnuTLS NEWSThe decision path from build flags to a negotiated hybrid group
The path starts at the build: GnuTLS only compiles the hybrid groups when it is built with --with-leancrypto, which needs leancrypto 1.2.0 or later. Next, set a priority string that names a hybrid group such as X25519-MLKEM768, since the NORMAL list does not include ML-KEM. Then test with gnutls-cli. If the negotiated group is plain X25519, check the group list ordering and whether FFDHE groups are listed, as issue 1828 reports a case where a server still negotiated plain X25519 until +GROUP-FFDHE2048 was added. Record the result either way.
Decision path from leancrypto build to a verified hybrid key exchange.
Frequently asked questions about enabling post-quantum algorithms in GnuTLS
Is GnuTLS quantum safe?
No product or configuration can be called quantum safe on the strength of these sources. GnuTLS 3.8.8 added experimental support for the hybrid key exchanges X25519MLKEM768 and SecP256r1MLKEM768 in TLS 1.3, and 3.8.9 added leancrypto as an experimental, build-time provider. The hybrid groups pair a post-quantum KEM with a classical group, so a connection that negotiates one still relies on the classical half. Classical fallback remains available unless you remove it from the priority string. Confirm current status for your exact version with the GnuTLS project, since the sources here do not describe a support commitment.
Which GnuTLS version and build flag do I need for post-quantum key exchange?
The sources show hybrid key exchange first appearing in GnuTLS 3.8.8, released 2024-11-05. The post-quantum provider is built from leancrypto, which GnuTLS 3.8.9 introduced as an experimental build option. The configure flag is --with-leancrypto, off by default, and it requires leancrypto 1.2.0 or later. From 3.8.10, leancrypto is the only post-quantum provider. Confirm that your distribution's package was built with leancrypto enabled, because the hybrid groups are compiled in only when HAVE_LEANCRYPTO is defined.
Does enabling post-quantum algorithms in GnuTLS cost extra?
The sources do not give a price for GnuTLS or for leancrypto, and GnuTLS is licensed under LGPL 2.1 or later for its core libraries. Costs come from effort: rebuilding or sourcing a build with leancrypto, testing clients that negotiate the hybrid groups, and updating priority strings across servers. Ask your distribution or internal platform team to confirm package licensing and support terms. Any paid support or integration work should be priced against a written scope.
What breaks when I turn on a hybrid group in GnuTLS?
Three things commonly break. First, clients that do not offer the hybrid group cannot negotiate it, so they fall back to a classical group if one is listed. Second, ordering matters: GnuTLS issue 1602 reports that listing X25519-MLKEM768 before X25519 with a TLS 1.3-only setting failed in gnutls-cli, while listing X25519 first succeeded. Third, a server with NORMAL:-GROUP-ALL:+GROUP-X25519-MLKEM768:+GROUP-X25519 negotiated plain X25519 unless FFDHE2048 was also listed, according to GnuTLS issue 1828 filed against 3.8.12. Test each client class against your exact priority string before rollout.
How do I set a post-quantum priority string in GnuTLS system-wide?
GnuTLS reads a system-wide INI file, located by default at /etc/gnutls/config, or at the path set by the GNUTLS_SYSTEM_PRIORITY_FILE environment variable. Since 3.8.11 the default location follows configure --sysconfdir. In the [overrides] section, set default-priority-string. A form that adds hybrid groups to the normal default is NORMAL:-GROUP-ALL:+GROUP-X25519-MLKEM768:+GROUP-X25519 as used in the sources. Setting GNUTLS_SYSTEM_PRIORITY_FAIL_ON_INVALID to 1 makes the library exit on unknown options, which helps catch typos. Verify the file in use with gnutls_get_system_config_file().
What should I ask the GnuTLS project or my distribution before enabling post-quantum support?
Ask which exact version and build flags your package uses, and whether leancrypto is compiled in. Ask whether the hybrid groups are enabled by default or only through an explicit priority string, since the NORMAL group list in lib/priority.c does not show an ML-KEM group. Ask whether standalone ML-KEM can be used in TLS, because the sources say it has no TLS identifier. Ask for the project's position on SLH-DSA, since the NEWS reviewed through 3.8.14 does not mention it. Ask what the roadmap says about TLS 1.0 and 1.1, which 3.8.14 still enables by default.
Can my team enable post-quantum algorithms in GnuTLS ourselves, or do we need outside help?
Your team can make the configuration changes described here if it has the build access, a test environment that mirrors production clients, and the ability to read TLS traces. Outside help is most useful when many client types must be tested, when fallback rules are part of a compliance review, or when you need a documented result. DeployOpen plans and implements these changes in your infrastructure, and runs security testing that checks the negotiated groups under real client conditions. We can scope that work in writing before it starts, and the delivered findings include the fixes and a retest.
How DeployOpen works on this
DeployOpen approaches post-quantum enablement in GnuTLS as a scoped, tested configuration change, not a library swap. We start from the build and the system-wide policy your servers and clients actually use, confirm which hybrid groups the installed version compiles in, and test each priority string against real handshakes before anything reaches production. Every change is documented so your team can repeat it.
How we scope
- We confirm the GnuTLS version and whether it was built with --with-leancrypto, since the hybrid groups exist only when that build option is present.
- We record where the system configuration file lives and whether applications set their own priority strings, so the change lands in the right layer.
- Engagements are fixed-scope: the written scope names the applications, hosts and test cases covered, and ongoing support is available as a retainer.
How we build
- We set the default-priority-string or application priority strings and add explicit hybrid groups such as X25519-MLKEM768, since NORMAL does not include them.
- We test each hybrid pairing against TLS 1.3 handshakes, including the ordering and version restrictions that the project's issue tracker reports as failure cases.
- We check that disabled or insecure settings in the system file are not silently re-enabling protocols, and that unknown options are caught with the fail-on-invalid setting.
How we hand over
- We deliver the tested priority strings, the configuration file diff and the exact GnuTLS version each test ran against.
- We document the handshake results per client and server pair, including any fallback to classical X25519 that a test shows.
- We record open items, such as the 3.8.12 group-negotiation report on Fedora 43, so your team can confirm them in its own environment.
How we support
- We re-run the handshake tests when GnuTLS is upgraded, since the 3.8.14 release and later changes affect the default TLS versions and key-format options.
- We track the project's NEWS file and notices, and flag changes to group names, ML-DSA support or default TLS versions that affect your settings.
- Continuous testing and upgrades are available as a retainer, with each cycle documented for your compliance and security reviewers.

