Does Libreswan support post-quantum cryptography today?
If you run Libreswan for site-to-site tunnels and need to know where post-quantum protection stands, here is the direct answer. Libreswan 5.4, dated August 13, 2026, added post-quantum key exchange through ML_KEM_768 in the IKE_SA_INIT and IKE_INTERMEDIATE exchanges, and the entry says it requires NSS 3.118.1 or newer. Rocky Linux 10.3 release notes state that its Libreswan 5.4 adds ML-KEM-768 and ML-KEM-1024 in IKEv2, while the upstream changelog names only ML_KEM_768, so confirm which parameter set your build exposes before you record an answer. As of December 3, 2026, the v5.4, v5.4.1 and v5.4.2 changelog entries do not document any post-quantum signature or certificate authentication such as ML-DSA or SLH-DSA, so RSA and ECDSA certificates and signatures remain the authentication path in those releases.
Post-quantum key exchange should not be read as a default. Neither the Libreswan home page nor the CHANGES file describes ML-KEM as enabled without configuration, and I found no vendor statement that it is. The changelog also adds support for RFC 9370 multiple key exchanges and IKE_ADDITIONAL_KE, which appears to be the mechanism through which an additional key exchange such as addke1= would be added to ike=. Treat that as a point to verify against the 5.4 documentation rather than a confirmed setting. The ipsec.conf man page copy available to me predates the 5.4 work and does not mention addke, ML-KEM or nssdir, so it cannot confirm the option names. The 5.4 changelog also lists IKE_FOLLOWUP_KE support, but a third-party mirror of the man page says 5.4 does not support it, so ask the project to resolve that before relying on it.
Two items remain open for a readiness record. First, the Libreswan home page's only post-quantum entry is a completed 2017 project on post-quantum preshared keys (ppk, RFC 8784, marked EXPERIMENTAL in ipsec.conf), which is not the same as ML-KEM key exchange. Second, the project has published no roadmap statement on ML-DSA, SLH-DSA, ML-KEM-1024 or CNSA 2.0 on the pages checked, which were the home page, CHANGES and the 5.4 release notes. Ask the Libreswan project or your distributor to confirm the supported parameter sets, the NSS version in your build, and whether post-quantum authentication is planned, and record the dates of those answers.
Which Libreswan versions offer post-quantum key exchange
This table compares Libreswan release lines and the Rocky Linux 10.3 packaged build on post-quantum key exchange, post-quantum signatures, default behavior and source. Read each row against the upstream changelog and the distribution's release notes, since the two sources disagree on which ML-KEM parameter sets are included. The main takeaway is that the documented post-quantum key exchange starts in 5.4, and no post-quantum signature support appears in any version checked.
| Release | Post-quantum key exchange | Post-quantum signatures or certificates | Enabled by default or opt-in | Source and date |
|---|---|---|---|---|
| Pre-5.4 release line | None documented | None documented | Not applicable | Libreswan CHANGES, checked 2026-12-03 |
| Libreswan 5.4 (upstream, August 13, 2026) | ML_KEM_768 in IKE_SA_INIT and IKE_INTERMEDIATE, requires NSS 3.118.1 or newer | None documented | Not described as default, appears to require an added key exchange such as addke1= | Libreswan CHANGES and 5.4 GitHub release, checked 2026-12-03 |
| Libreswan 5.4.1 (October 5, 2026) | No post-quantum key exchange entry in the changelog | None documented | Not described as default | Libreswan CHANGES, checked 2026-12-03 |
| Libreswan 5.4.2 (November 16, 2026) | No post-quantum key exchange entry in the changelog | None documented | Not described as default | Libreswan CHANGES and home page, checked 2026-12-03 |
| Rocky Linux 10.3 packaged Libreswan 5.4 | ML-KEM-768 and ML-KEM-1024 in IKEv2 per Rocky notes, upstream names only ML_KEM_768 | None documented | Not described as default, confirm with the distribution's configuration guidance | Rocky Linux 10.3 announcement and Libreswan CHANGES, checked 2026-12-03 |
| IKE_FOLLOWUP_KE support in 5.4 (unresolved) | Changelog lists IKE_FOLLOWUP_KE support, a third-party mirror of the man page says 5.4 does not support it | Not applicable | Not applicable | Libreswan CHANGES and ipsec.conf man page mirror, unresolved as of 2026-12-03 |
Which post-quantum algorithms Libreswan names and where they apply
Libreswan's documented post-quantum work is limited to key exchange in the IKE tunnel setup, plus an experimental preshared key option. The cards below separate each algorithm and option from the others and state the interface each one applies to, so you can check which settings matter for an IPsec tunnel.
ML_KEM_768 in IKE_SA_INIT
Libreswan 5.4, dated August 13, 2026, added ML_KEM_768 support for the IKE_SA_INIT and IKE_INTERMEDIATE exchanges. This is a key exchange used when the IKE tunnel is set up, so it affects the session key for the IPsec tunnel and not certificates or signatures. The changelog says it requires NSS 3.118.1 or newer. Confirm the NSS version on your build before you plan around it. Rocky Linux 10.3 release notes also mention ML-KEM-1024, but the upstream changelog names only ML_KEM_768, so check which value your build accepts.
Libreswan CHANGESRFC 9370 multiple key exchange
Libreswan 5.4 implemented IKE_ADDITIONAL_KE for RFC 9370 multiple key exchanges and updated IKE_INTERMEDIATE to match. This is the mechanism that carries ML_KEM_768 alongside a classical key exchange, so the post-quantum value is added to the classical one rather than replacing it. The changelog does not say ML-KEM is on by default. The ipsec.conf man page copy checked does not show the addke options, so confirm the exact setting name in the current man page before you write it into a config.
ipsec.conf man pageExperimental ppk preshared keys
The ppk option in ipsec.conf uses post-quantum preshared keys based on RFC 8784, and the man page marks it EXPERIMENTAL. It accepts propose, yes, insist and never or no. This is a separate mechanism from ML_KEM_768 and does not use public-key algorithms for the key exchange. The project's home page lists a 2017 project on post-quantum preshared keys as completed. Treat ppk as an experimental feature that needs a preshared key distribution process, and do not rely on it as a supported production control without confirming its status with the project.
ipsec.conf man pageClassical ike= proposals still in use
The ike= option sets the IKE encryption, authentication and Diffie-Hellman group proposals in the form cipher-hash-modpgroup. Omitted parts default to all allowed values, and for IKEv2 the defaults include AES, AES-GCM, DH14 and stronger, with SHA2. Classical groups such as these still apply to the tunnel, and a post-quantum value is added to them through an additional key exchange rather than in place of them. Check the ike= line on each tunnel, since an unset line falls back to these defaults.
ipsec.conf man pageNo documented ML-DSA or SLH-DSA
The Libreswan changelog entries for v5.4, v5.4.1 and v5.4.2 do not mention ML-DSA, SLH-DSA or any post-quantum signature authentication. Authentication still uses RSA or ECDSA signatures with certificates or preshared keys, as the man page describes for authby=, leftrsasigkey and leftcert. For tunnel authentication, plan on the classical signature options, and ask the project for a statement if post-quantum signatures matter to your review.
Libreswan CHANGESScope limited to the IKE tunnel
The algorithms in this section apply to the IKE key exchange that sets up the IPsec tunnel between gateways. They do not describe Libreswan's management interface, client TLS or the certificate storage in the NSS database at /var/lib/ipsec/nss by default. Those interfaces need their own checks. Record the tunnel key exchange as the only interface where ML_KEM_768 is documented, and confirm each other interface separately.
Libreswan documentationWhat Libreswan post-quantum key exchange depends on
Libreswan's post-quantum key exchange has a hard prerequisite: the ML_KEM_768 support added in Libreswan 5.4, dated August 13, 2026, requires NSS 3.118.1 or newer. Libreswan does its cryptography through the NSS crypto library, so the NSS version on the gateway, not just the Libreswan version, decides whether the feature can work. On a distribution package, check the installed NSS version directly with the package manager and compare it to 3.118.1 before planning a test. Rocky Linux 10.3 release notes say its Libreswan 5.4 adds ML-KEM-768 and ML-KEM-1024 in IKEv2, but the upstream changelog names only ML_KEM_768, so confirm which parameter sets your build actually provides before relying on either.
Certificates and keys also sit in NSS. Libreswan keeps certificate material in an NSS database at /var/lib/ipsec/nss by default, and the --nssdir option selects another directory. Any RSA or ECDSA certificate referenced in ipsec.conf through leftcert lives there, so a key exchange upgrade does not change how those certificates are stored or renewed. If you run in FIPS mode, note that the ipsec.conf man page says some hash methods such as MD5 might not be available, and that seedbits should be at least 460 bits for FIPS. Test the post-quantum setting on a FIPS-enabled host before assuming it behaves the same way.
The ipsec.conf man page copy checked for this page predates the 5.4 terms: it does not contain addke, ML-KEM or nssdir, so it cannot confirm how to add an ML-KEM exchange to ike=. Read the man page shipped with your installed version, for example with man ipsec.conf on the gateway, and confirm the exact key names and any addke1= syntax there. The changelog does not describe ML-KEM as on by default, so plan on an explicit configuration change and a test tunnel to a peer that also supports the same exchange.
How to turn on ML-KEM key exchange in Libreswan 5.4
This sequence confirms that your Libreswan build can offer ML-KEM-768 in IKEv2 and adds it to a connection's key exchange proposal. The result is a tunnel that you can verify by checking the negotiated group in the pluto logs. The supplied sources do not document the exact syntax, so confirm each setting against your installed man page before you apply it.
Confirm Libreswan and NSS versions
Check that the installed Libreswan is version 5.4 or later, and that the NSS library it uses is version 3.118.1 or newer. Libreswan 5.4 added ML_KEM_768 support in the IKE_SA_INIT and IKE_INTERMEDIATE exchanges, and its changelog entry says it requires NSS 3.118.1 or newer. Run the version command on each gateway and record the output. If either version is lower, upgrade before going further, because the ML-KEM settings will not take effect on an older build.
Review the current ike proposal
Open the connection definition in your ipsec.conf file on each gateway and note the existing ike= line. Record the cipher, hash and DH group values already offered, since they set the baseline you are changing. The ike= proposal is documented in the form cipher-hash-modpgroup. Keep a copy of the original file so you can roll back the change if the tunnel fails to come up.
Add ML-KEM as an additional key exchange
In the connection's ike= proposal, add an additional key exchange such as addke1= that names the ML-KEM-768 group. This step is inferred from the Libreswan 5.4 changelog, which describes IKE_ADDITIONAL_KE support under RFC 9370, and is not stated by the vendor. The changelog does not describe ML-KEM as enabled by default, so this change appears necessary. Confirm the exact syntax, including the group name and the placement of the option, in the installed ipsec.conf man page before you save the file.
Apply the change to both gateways
Make the same edit on the peer gateway so both ends offer and accept the same additional key exchange. A mismatch can prevent the tunnel from establishing, so compare the ike= lines on both sides after editing. Save the files and confirm that neither gateway still carries an old copy of the connection. The sources do not say how the peer will behave if only one side is changed, so do not assume a one-sided change works.
Restart the connection
Restart the affected connection on each gateway, using the restart or reload method your installed version provides, and confirm the output reports no configuration errors. Watch the status output until the IKE security association comes up. If it fails, read the error in the log before making further changes. Record the time of the restart so you can match it to the log entries in the next step.
Check the negotiated group in pluto logs
Look in the pluto logs on each gateway for the key exchange that was negotiated during the restart. The check passes when the log shows ML-KEM-768 as a negotiated group, along with the classic DH group used alongside it. If the log shows only the classic group, the ML-KEM setting did not take effect, so recheck the ike= syntax against the man page. Keep the log excerpt as evidence for your change record.
What Libreswan does not document as supported
The Libreswan project's home page, CHANGES file and 5.4 release notes do not document several post-quantum items that network teams often assume exist. Each item below is unpublished as of December 3, 2026, so treat it as an open question to confirm with the project or your distribution before you plan around it.
Post-quantum signature authentication
The v5.4, v5.4.1 and v5.4.2 changelog entries do not mention ML-DSA, SLH-DSA or any other post-quantum signature algorithm for IKE authentication. Gateways in this release still authenticate with RSA or ECDSA signatures and certificates, so no post-quantum signature authentication is documented. Check the authby= and certificate settings in your own ipsec.conf and confirm with the project whether signature support is planned.
Post-quantum certificates
No Libreswan source supplied for this page documents post-quantum certificates, meaning certificates whose subject keys or signatures use ML-DSA or SLH-DSA. Certificate material still lives in the NSS database, and the leftcert setting names certificates issued by your CA. Post-quantum certificate support depends on both the Libreswan release and the NSS library beneath it, so ask the project and your certificate authority to confirm both.
ML-KEM-1024 in the upstream changelog
The upstream Libreswan changelog for v5.4 names only ML_KEM_768. The ML-KEM-1024 variant appears in the Rocky Linux 10.3 release notes, which describe their Libreswan 5.4 build as adding both ML-KEM-768 and ML-KEM-1024. Treat ML-KEM-1024 as a distribution-specific statement until the upstream project documents it. Confirm the variant and the exact build with your vendor before you cite it in a review.
IKE_FOLLOWUP_KE status
The status of IKE_FOLLOWUP_KE support in 5.4 is conflicting across sources. The Libreswan CHANGES file lists IKE_FOLLOWUP_KE support as a 5.4 entry, while a third-party mirror of the ipsec.conf man page states that 5.4 does not support it. Do not record this as supported or unsupported until the project resolves the conflict. Ask for a written statement that names the release and the component.
Libreswan CHANGESFIPS and CNSA 2.0 validation
The Libreswan home page does not mention FIPS validation or CNSA 2.0 alignment. The only FIPS-related v5.4 series entry is a test for CVE-2026-77205 in v5.4.1, dated October 5, 2026, which is not a validation statement. The man page notes that some hash methods may be unavailable in FIPS mode. Ask the project or your distribution for any validation certificate and its scope, and do not infer validation from a FIPS mode option.
Libreswan home pagePost-quantum roadmap statements
The pages the project publishes on its home page, in its CHANGES file and in its 5.4 release notes contain no roadmap statement on ML-DSA, SLH-DSA, ML-KEM-1024 or CNSA 2.0. An absent roadmap is not a commitment either way. Ask the project whether it has a post-quantum plan, the timeline it targets, and whether any future work will be published in writing before you add it to your migration schedule.
Libreswan CHANGESHow support differs between upstream Libreswan and distribution builds
The upstream Libreswan project is free software published under the GPLv2 license, and its home page lists 5.4.2 as the current release as of December 3, 2026. The changelog dates v5.4.2 to November 16, 2026. In the v5.4 entry dated August 13, 2026, the project added ML_KEM_768 support for the IKE_SA_INIT and IKE_INTERMEDIATE exchanges and noted that it requires NSS 3.118.1 or newer.
- Release version: 5.4.2 is the current upstream release as of the date above, so check the version you run with
ipsec --version. - ML-KEM coverage: The upstream changelog names only ML_KEM_768. It does not mention ML-KEM-1024.
- Signatures: The v5.4, v5.4.1 and v5.4.2 entries do not mention ML-DSA, SLH-DSA or any post-quantum signature authentication.
- Roadmap: The project has published no roadmap statement on ML-DSA, SLH-DSA, ML-KEM-1024 or CNSA 2.0 on the pages checked.
- Library dependency: ML-KEM depends on the NSS crypto library version noted above.
Before relying on any of these points, confirm them against the CHANGES file and the release notes for the exact build you deploy.
Rocky Linux 10.3 ships a packaged Libreswan 5.4. Its release notes state that this package adds ML-KEM-768 and ML-KEM-1024 post-quantum key exchange in IKEv2. That wording covers a broader set of parameter sets than the upstream changelog names, so the distribution statement and the upstream statement need to be read side by side.
- Named parameter sets: The release notes name ML-KEM-768 and ML-KEM-1024. The upstream changelog names only ML_KEM_768.
- Base version: The packaged build is described as Libreswan 5.4, which may not match the 5.4.2 upstream release, so check the package version installed.
- Activation: No fact supplied states that ML-KEM is enabled by default. It appears to require adding an additional key exchange, such as
addke1=, toike=. - Signatures: No post-quantum signature support appears in the facts for this build.
- Vendor statement scope: The Rocky Linux statement covers the key exchange only, not certificates or signatures.
Confirm the installed package version and the exact parameter names with the Rocky Linux release documentation before planning a change.
Other Linux distributions, appliance builds and vendor packages of Libreswan may be older, newer or patched differently from the upstream release. No fact is supplied for them on this page, so no support statement can be made for any of them here. Each package has its own changelog and its own statement about which algorithms it compiles in.
- Version gap: A distribution may ship an older or newer Libreswan than 5.4.2, which changes which ML-KEM entries exist.
- NSS dependency: The ML-KEM entry depends on NSS 3.118.1 or newer, so check the NSS version the package links against.
- Patched builds: Vendors may backport or alter features, so the package changelog is the source to read.
- Support contact: Ask the packager whether ML-KEM is compiled in, which parameter sets it supports and whether it is enabled by default.
- Documentation fit: Compare the packager's man pages with the upstream ipsec.conf man page, since older man pages may not mention ML-KEM or addke.
Ask the packager for written answers to each point before recording the build in your inventory.
What changes on the tunnel when post-quantum key exchange is on
Turning on ML-KEM in Libreswan changes the key exchange, not the rest of the tunnel. The facts say Libreswan 5.4 added ML_KEM_768 support in the IKE_SA_INIT and IKE_INTERMEDIATE exchanges and that it requires NSS 3.118.1 or newer. In practice, this means the initial IKE exchange carries a larger key exchange message than a classic Diffie-Hellman group does. That is generic IKE behavior for post-quantum key exchange, so plan for larger IKE packets and confirm with your own captures how your network path handles them. The facts do not give message sizes, so measure them in your environment rather than assuming a figure.
Both gateways must agree on the same group, and the exchange has to be carried through IKE_INTERMEDIATE. The facts say Libreswan 5.4 updated IKE_INTERMEDIATE to RFC 9370 and added IKE_ADDITIONAL_KE for multiple key exchanges, and that ML-KEM does not appear to be on by default. Check that the peer on the other end of the tunnel supports the same group and the same intermediate handling, and check any firewall, NAT device or other middlebox on the path that inspects IKE traffic. The facts also note an unresolved question about IKE_FOLLOWUP_KE support in 5.4, so confirm that behavior with the project before relying on it.
Logs will show which group was negotiated, so check them after the change. Before you call the tunnel post-quantum, confirm in the logs that ML-KEM was actually chosen for the connection, and do not infer it from the configuration alone. Rocky Linux 10.3 states that its Libreswan 5.4 adds ML-KEM-768 and ML-KEM-1024, while the upstream changelog names only ML_KEM_768, so confirm which variants your build provides. Keep in mind this covers key exchange only. The facts show no post-quantum signature support in the 5.4 series, so certificate and authentication keys stay on their current algorithms.
What to do next, depending on your Libreswan version
This sequence sorts your Libreswan deployment by release line so you know whether ML-KEM key exchange is available to test, what to plan if it is not, and how to record the answer accurately for questionnaires and contract reviews. Each step ends with a check you can confirm yourself.
Confirm your running Libreswan version
The network team runs the version check on each gateway, using the installed package or the output of the ipsec command on the host, and records the exact version string. Libreswan 5.4 added ML_KEM_768 support on August 13, 2026, and the project home page listed 5.4.2 as current on 2026-12-03, so the version decides which of the following steps applies. Your Linux distribution may ship a patched build with a different version string, so confirm the version your distribution reports, not only the upstream number. Done when every gateway has a recorded version in your inventory.
Check the NSS version on gateways running 5.4 or later
On any gateway running Libreswan 5.4 or later, the network engineer confirms the installed NSS library is version 3.118.1 or newer, because the Libreswan changelog says ML_KEM_768 requires that NSS release. Check the NSS package version with your package manager, since Libreswan uses the NSS crypto library for its cryptography. If the NSS version is older, update NSS before testing. Done when the NSS version is recorded next to the Libreswan version for each gateway.
Test ML-KEM on a non-production tunnel
On a gateway at 5.4 or later with a compatible NSS, the network engineer builds a test tunnel that is not carrying production traffic and adds an additional key exchange to the ike= setting, since the changelog does not describe ML-KEM as enabled by default. The exact configuration key and proposal syntax must be confirmed against the 5.4 documentation and the ipsec.conf man page, because the man page copy checked does not yet mention ML-KEM. Establish the tunnel and confirm from the logs that the IKE negotiation completed with an ML-KEM exchange. Done when the test tunnel comes up and the negotiated exchange is recorded.
Plan the upgrade on releases older than 5.4
On any gateway running a release older than 5.4, the network team lists the upgrade path to 5.4 or later, including the distribution package that ships it and the NSS version that package requires. Rocky Linux 10.3 release notes state that its Libreswan 5.4 adds ML-KEM-768 and ML-KEM-1024, while the upstream changelog names only ML_KEM_768, so confirm with your distribution which parameter sets its build provides. Schedule the change through your normal change process, and test the upgraded build on a non-production tunnel before moving production. Done when each older gateway has a documented upgrade path and a target version.
Record signatures as classical in the inventory
For every gateway, the security lead records the authentication method, whether RSA or ECDSA signatures, and the certificate or preshared key in use, because the changelog entries for 5.4, 5.4.1 and 5.4.2 do not mention ML-DSA, SLH-DSA or any post-quantum signature authentication. Note in the inventory that the post-quantum work covers key exchange only, and that signature and certificate authentication still depends on classical public-key algorithms. Done when the inventory entry for each gateway names its authentication method and marks signatures as classical.
Answer security questionnaires with the verified scope
When a questionnaire asks about post-quantum support, the vendor-risk reviewer records the answer for the tested version as key exchange only, with signatures not documented, and cites the Libreswan changelog and the version checked. Avoid describing the product as compliant, certified or quantum safe, since the facts do not support those claims. If the answer depends on a configuration you have not verified, say that it must be confirmed in your environment. Done when the questionnaire entry names the version, the key exchange scope and the signature gap.
Read federal contract references as reference points
When a federal contract cites CNSA 2.0 or the NSA advisory, the compliance lead records that the NSA advisory and CNSA 2.0 are reference points for national security systems and are not binding on commercial organizations. Confirm with the contracting officer what the contract requires of your system, since that determines whether any of these references apply to your gateways. Libreswan has published no roadmap statement on CNSA 2.0, ML-DSA, SLH-DSA or ML-KEM-1024 on the pages checked, so record that gap. Done when the contract requirement is logged and the reviewer has confirmed its applicability in writing.
What to ask the Libreswan project and your distributor
The public record leaves several points unresolved, including whether ML-KEM-1024 is upstream and how the IKE_FOLLOWUP_KE status reads. Bring these questions to the Libreswan project's public channels and to your distributor's support contact, and get written answers that name the exact version and build you run.
Is ML-KEM-1024 in upstream Libreswan?
The Rocky Linux 10.3 release notes say its Libreswan 5.4 adds ML-KEM-1024 key exchange, but the upstream changelog entry names only ML_KEM_768. Ask the Libreswan project whether ML-KEM-1024 is part of upstream 5.4.x, and if so, in which release and with which NSS version it depends. Ask your distributor whether its build carries a patch that adds ML-KEM-1024 beyond upstream, and whether that patch is in the package version you run.
Rocky Linux 10.3 notesStatus of IKE_FOLLOWUP_KE support
The Libreswan CHANGES file lists IKE_FOLLOWUP_KE support for 5.4, but the ipsec.conf man page copy reviewed through a third-party mirror says 5.4 does not support it. Ask the project which statement is correct for the 5.4 series and for the release you plan to deploy. Ask your distributor to confirm the same for its packaged build, since a distribution can differ from upstream.
Libreswan CHANGESDate for ML-DSA or SLH-DSA signatures
The 5.4, 5.4.1 and 5.4.2 changelog entries do not mention ML-DSA, SLH-DSA or any post-quantum signature authentication. Ask the project whether post-quantum signature support is planned, and if it is, for which release. Ask whether a target date exists in writing. Without a dated commitment, plan certificate and authentication work on the assumption that no post-quantum signature option is available yet.
Libreswan home pageFIPS validation status of the NSS build
Libreswan uses the NSS crypto library, and FIPS mode affects which hash methods remain available. Ask the distributor for the FIPS validation status of the NSS build it ships, including the validated module name, version and certificate number. Ask the project which NSS version it tests against for ML-KEM. Do not assume that a validation of one NSS build covers Libreswan running on another.
Whether ML-KEM is default in distribution builds
The Libreswan changelog does not describe ML-KEM as enabled by default, and no vendor statement says it is on without configuration. Ask your distributor whether its packaged build enables any ML-KEM key exchange in a default configuration, or whether an additional key exchange setting such as addke1= must be added to ike=. Request the default ipsec.conf shipped in that package so you can confirm the answer on your own system.
Post-quantum roadmap and project notices
The Libreswan home page does not mention ML-KEM, FIPS or CNSA 2.0, and no roadmap statement on ML-DSA, SLH-DSA, ML-KEM-1024 or CNSA 2.0 appeared on the pages reviewed. Ask the project whether a roadmap, transition guide or deprecation notice is in preparation, and how it will announce one. Ask your distributor whether it will track and publish any such project notices in its own security advisories.
Libreswan 5.4 releaseIs Libreswan quantum safe, and what should I do?
Is Libreswan quantum safe?
Libreswan does not document itself as quantum safe, and this page does not treat that phrase as a claim about the product. What the supplied facts support is narrower: Libreswan 5.4, dated August 13, 2026, added ML_KEM_768 support in the IKE_SA_INIT and IKE_INTERMEDIATE exchanges, which is a post-quantum key exchange. The changelog entries for 5.4, 5.4.1 and 5.4.2 document no post-quantum signature authentication, so RSA and ECDSA certificates and signatures remain the documented authentication methods. Key exchange and authentication should be assessed separately. Confirm the exact configuration in your own deployment with the Libreswan documentation for your version.
Which Libreswan version do I need for post-quantum key exchange?
The supplied facts point to Libreswan 5.4 or later, built against NSS 3.118.1 or newer, because the ML_KEM_768 entry in the 5.4 changelog states that requirement. The current release listed on the project home page as of December 3, 2026 is 5.4.2, dated November 16, 2026. Rocky Linux 10.3 release notes state that its packaged Libreswan 5.4 adds ML-KEM-768 and ML-KEM-1024, while the upstream changelog names only ML_KEM_768, so check which ML-KEM variants your build actually provides. Confirm the NSS version your distribution ships before planning, since a 5.4 build linked against an older NSS will not meet the stated requirement.
Does enabling post-quantum key exchange in Libreswan cost extra?
The supplied facts contain no figure for cost, so this page gives none. The main cost drivers are the staff time to upgrade Libreswan and NSS on each gateway, test the change against every peer, and update configuration. Libreswan is free software under GPLv2, so the software itself carries no license fee, but support contracts and any distribution subscription are separate. Costs also rise with the number of tunnels and peers, the number of vendors on the far end, and whether maintenance windows must be scheduled. Ask any implementation partner for a fixed-scope quote with written deliverables and a testing plan, and ask your distribution vendor what support they offer for the upgraded packages.
What breaks when Libreswan uses post-quantum key exchange?
The supplied facts do not describe the specific handshake size increase or failure modes, so confirm these in testing rather than assume them. Post-quantum key exchange adds an additional exchange to IKE, so the setup can differ from the classic Diffie-Hellman path, and peers that do not offer the same algorithms will fail to negotiate. Check the following before rollout: whether each peer supports ML-KEM in IKEv2, whether an additional key exchange such as addke1= must be configured in ike=, whether the 5.4 IKE_FOLLOWUP_KE status matches your needs (the supplied facts leave this unresolved), and whether any FIPS-mode restrictions apply to your build. Test each tunnel path in a staging environment first.
What should I ask Libreswan or my distribution vendor about post-quantum support?
Ask for the exact Libreswan and NSS versions, and whether ML_KEM_768 and ML_KEM_1024 are both present in your build. Confirm whether post-quantum key exchange is enabled by default or requires an explicit additional key exchange setting in ike=. Ask whether any post-quantum signature support, such as ML-DSA or SLH-DSA, is planned, since the project documents none in 5.4, 5.4.1 or 5.4.2. Ask for any published roadmap on ML-KEM-1024 or CNSA 2.0, because none appears on the pages checked. Request the status of IKE_FOLLOWUP_KE in 5.4, since the changelog and man page disagree. Get each answer in writing with a date.
Can my team plan and test this ourselves, or do we need help?
Many teams can handle this in-house if they have the time and the skills for IKEv2, NSS and certificate management, and they can read the Libreswan documentation for their version. Bringing in outside help makes sense when many gateways and peers must be coordinated, when peers belong to other organizations, or when evidence is needed for an assessment. DeployOpen plans, implements, tests and documents Libreswan rollouts inside your own infrastructure, with a fixed-scope written agreement. DeployOpen prepares systems, controls and evidence for compliance assessments, but does not issue audit reports, attestations or certifications, which independent auditors and certification bodies provide. DeployOpen is not a partner or certified provider of Libreswan.
How DeployOpen helps plan and test Libreswan post-quantum changes
DeployOpen works on Libreswan post-quantum readiness as a planning and testing engagement inside your own infrastructure. We confirm the current support status against your exact Libreswan version and NSS build, then scope the work in writing before any change is made. The aim is an answer your network and security teams can check and record.
How we scope
- Confirm the exact Libreswan version, including whether you run 5.4 or later, and the NSS version your build uses.
- Inventory each connection's ike= and esp= settings, authby method, and whether leftrsasigkey or certificates are in use.
- Agree the written scope, deliverables and timeline with you before testing begins, since engagements are fixed-scope.
How we build
- Build a lab matching your tunnel layout, then test ML_KEM_768 key exchange against a supported NSS release.
- Test whether an additional key exchange such as addke1= is required, since the changelog does not show ML-KEM as on by default.
- Record any tunnel that fails to negotiate, and check it against the IKEv2 settings and fallback behavior you rely on.
How we hand over
- Deliver a written report stating what Libreswan 5.4 supports, what is undocumented, and what remains unresolved in the changelog.
- Include the tested configuration snippets, the NSS database location and the --nssdir setting used in each test.
- Document open items such as the IKE_FOLLOWUP_KE question and the absence of ML-DSA or CNSA 2.0 statements from the project.
How we support
- Offer ongoing support as a retainer to track future Libreswan releases and changelog entries that touch these settings.
- Retest tunnels after each Libreswan or NSS upgrade so the recorded answer stays current for your vendor-risk file.
- Ask us to confirm any new project notice on post-quantum signatures or roadmap before your next review.

