What a failed strongSwan post-quantum handshake means and who has to act
A failed negotiation after enabling ML-KEM means the IKE peers could not agree on a key exchange method, so the tunnel is not established and no traffic is protected by it. Traffic that was meant to travel through that tunnel is not encrypted by it, so the connection stays down until the peers agree. An already established tunnel is not torn down by a new negotiation failure, so it remains encrypted under the keys it already negotiated. The failure is usually urgent only for the tunnel being brought up, since existing sessions are not affected by the failed attempt. Confirm this on your own gateway by checking whether the affected connection appears in swanctl --list-sas before and after the change.
Two roles act on this. The server operator owns the strongSwan configuration and binaries, so they decide whether the proposals setting in swanctl.conf and the installed release are changed. The remote-access administrator owns the client side and the peer settings that must match the gateway. Because strongSwan is self-hosted, the operator controls both the configuration and the binaries, which means the fix sits inside their own infrastructure and does not depend on a vendor release cycle. Confirm which release is installed with swanctl --version, and confirm whether ML-KEM is loaded with swanctl --list-algs.
The charon logs at level 1 in the IKE subsystem name the failure. Look for "no acceptable proposal found", which means no common proposal exists, and "KE payload missing in message", which means a peer did not send the expected key exchange payload. Other level 1 messages such as "peer didn't accept key exchange method" and "configured key exchange method not supported" point to a mismatch in the keX_ lists between the two peers. Before changing anything, record which of these messages appears, since each one points to a different side of the configuration to inspect.
Who changes what on a strongSwan gateway and its clients
A failed post-quantum tunnel can be caused by four different parties, and each one controls different settings. Knowing who owns which setting tells you who has to make the change, and whether you can fix the problem yourself or need to ask someone else.
The gateway operator
The operator controls the strongSwan server itself: the connections.<conn>.proposals list in swanctl.conf, the children.<child>.esp_proposals list, the logging settings in strongswan.conf, and the build that is installed on the host. On a self-hosted gateway, the operator can change every item in this list, so the operator is the party to check first when a tunnel fails. Before changing anything, run swanctl --version to confirm the release, and run swanctl --list-algs to see whether ML-KEM is loaded and which plugin provides it. A proposal that names mlkem768 will fail on a build that does not load it, so the operator must confirm the algorithm is present before editing the config.
The client user or administrator
The client side controls the software on the endpoint and the proposal list that the client offers during IKE negotiation. For a strongSwan client, that means the same kind of proposals setting as the gateway. For a vendor client, the user or the administrator can usually change only what the client exposes, such as a profile setting, an enable or disable switch for post-quantum key exchange, or a client version. An administrator who manages many endpoints should confirm which client version is deployed, because an outdated client may not offer the key exchange the gateway expects. A user who cannot see a proposal setting should ask the administrator rather than trying to edit files the client does not expose.
The package maintainer or distribution
The distribution or package maintainer decides which strongSwan release and which crypto library the build links against. This choice determines whether ML-KEM is available at all. The release notes state that the botan, wolfssl, openssl and ml plugins each require a minimum library version, and that OpenSSL 3.5 or newer supports ML-KEM in strongSwan 6.0.2 and later. A distribution package may be older than the upstream release, or may link against a library version that does not meet the minimum. The operator should ask the maintainer which release and which crypto library version were built in, rather than assuming that the upstream documentation matches the installed package.
strongSwan 6.0.2 releaseThe vendor of a third-party client
When a remote user connects with a third-party client, the vendor decides which key exchange methods that client supports and in what order. The operator cannot change that behavior on the gateway, and a strongSwan gateway cannot force a vendor client to offer ML-KEM. Before troubleshooting the gateway, check the client vendor's documentation or release notes to confirm whether post-quantum key exchange is supported in the client version in use. If the vendor has not published that information, ask the vendor directly and record the answer. A gateway change that the client cannot match will not fix the failure, so the vendor's answer determines whether the gateway configuration can be the solution.
Who decides the mismatch fix
A key exchange mismatch appears only when both sides disagree, so the fix must be coordinated between the gateway and the client. The strongSwan release notes state that peers must agree on a key exchange method for each round, unless neither side defines one or keX_none makes the round optional. The operator should compare the keX_ lists on both peers, and should check the ike_init.c messages at level 1, such as "peer didn't accept key exchange method" or "no acceptable proposal found", to identify which round failed. The party that owns the mismatching list must make the change, and the other party must confirm the result with a new connection attempt.
How to check the strongSwan version and ML-KEM support
This sequence confirms which strongSwan release is running, whether the ML-KEM algorithms are loaded and from which plugin, and whether both peers offer matching key exchange proposals. Raising IKE and configuration logging to level 2 then makes the order of the exchange visible, so a failed negotiation can be traced to the round where it breaks.
Confirm the installed strongSwan version
Run
swanctl --versionon the gateway or client host. On release 6.0.5 and later, the short formswanctl -Vis the documented option, since-vwas replaced in that release. Record the version string and compare it with the releases that added ML-KEM support: ML-KEM arrived in 6.0.0 (3 December 2024), and the 6.0.2 release of 14 July 2025 states that ML-KEM is supported through OpenSSL 3.5 or newer. Note the version on both peers, because a mismatch between them can explain a failed exchange. You know this step is done when you have the version number for each host written down.List loaded algorithms and their plugins
Run
swanctl --list-algson the same host. The output lists each loaded algorithm with the plugin that implements it in square brackets. Look for the keywordsmlkem512,mlkem768andmlkem1024. If none appear, ML-KEM is not loaded in this build, and the cause is usually the crypto backend or build configuration rather than the connection settings. The documented providers are the botan plugin (Botan 3.6.0 or newer), the wolfssl plugin (wolfSSL 5.7.4 or newer), the openssl plugin (with OpenSSL 3.5 or newer, or AWS-LC 1.37.0 or newer) and the experimental ml plugin, which is not enabled by default and requires the--enable-mlbuild option. Record which plugin provides the ML-KEM entries. You know this step is done when you can name the plugin that supplies ML-KEM on this host.Compare the proposals on both peers
Open
swanctl.confon each peer and find theproposalssetting under the relevantconnections.<conn>block. Compare the proposal strings on both sides. Post-quantum key exchange is added with akeX_prefix, where X is 1 to 7, as inx25519-ke1_mlkem768. Each peer must agree on a key exchange method for every round, unless a round is marked optional withkeX_none. A mismatch in thekeX_entries between the two peers is a documented cause of failed negotiation. Also check that the mlkem keyword in use is one the other peer's loaded plugins support, using the output from the previous step. Note any differences in a short list. You know this step is done when you can state whether the two proposal lines contain matching key exchange rounds.Raise IKE and configuration logging to level 2
Edit
strongswan.confand, inside the charon logger section (a filelog or syslog block), setike = 2andcfg = 2. The default level is 1. Level 2 records more detail about the exchange, which is needed here because the level 1 messages do not show each round. Save the file on the host and do not restart the daemon yet. Confirm that the logger block you edited is the one charon actually writes to, since a misplaced setting has no effect. You know this step is done when both values read 2 in the file and the logger block name is confirmed.Apply the logging change with a settings reload
Run
swanctl --reload-settingson the host so the daemon re-readsstrongswan.confwithout dropping existing tunnels. The documentation also allows sending SIGHUP to the charon process for the same effect. Confirm the reload succeeded by checking that the command returned without an error. Then trigger the connection attempt that fails, so the new detail is written to the log. You know this step is done when the reload command completed without errors and the failing attempt has been made after it.Read the exchange order in the log
Open the charon log file or syslog entries for the attempt. At level 2, the IKE subsystem shows each key exchange round as the peers negotiate it, which makes the order visible. Look for the level 1 messages that the source file
ike_init.cemits when a negotiation fails, such as "no acceptable proposal found", "peer didn't accept key exchange method", "negotiated key exchange method not supported", "configured key exchange method not supported" or "KE payload missing in message". Each message names the method involved, so match it against thekeX_entries you compared earlier. Note the last round that completed and the first round that did not. You know this step is done when you can name the exchange round where the negotiation stopped, or confirm that every round completed.Check the final result with the SA list
If the connection now establishes, run
swanctl --list-sasto view the security association. Be aware that the documented example prints only the final key exchange group, such as CURVE_25519, on the IKE line, so this output does not show the full sequence of rounds. Use it to confirm the tunnel is up and to record which group was finally negotiated. The round-by-round detail stays in the level 2 log. You know this step is done when the tunnel state and the final negotiated group are recorded alongside the log findings.
Causes of a failed ML-KEM negotiation and the fix for each
This table pairs each cause of a failed ML-KEM negotiation in strongSwan with the fix the sources name for it. Read each row against the log messages from ike_init.c at level 1 or level 2 to find the cause that matches your failure. The main takeaway is that most failures come from mismatched key exchange lists between peers, and aligning those lists or adding keX_none resolves them.
| Cause | How to confirm it | Fix |
|---|---|---|
| The two peers' keX_ lists do not match and neither round is marked keX_none | Look for "peer didn't accept key exchange method" or "no acceptable proposal found" in the IKE logs at level 1 | Align the proposal lists on both peers so each round names the same method, or add keX_none to make the round optional |
| The build is 6.0.0 without a supporting library such as Botan 3.6.0 or newer, wolfSSL 5.7.4 or newer, AWS-LC 1.37.0 or newer, or OpenSSL 3.5 or newer | Run swanctl --list-algs and check whether mlkem keywords are listed with their implementing plugin | Build or install a supported library version and enable the matching plugin, or upgrade to a release where ML-KEM works with OpenSSL 3.5 or newer |
| The ml plugin is not built with --enable-ml | Run swanctl --list-algs and check whether the ml plugin provides the mlkem keywords | Rebuild strongSwan 6.0.0 or newer with the configure option --enable-ml, or use a different supporting library |
| The peer is a Windows client not configured for PFS | Check the logs for "key exchange method" messages and whether the client accepted the proposal | Remove key exchange methods from the proposal for that client, as the 6.0.2 release notes describe, or configure PFS on the Windows client |
| IKE_SA_INIT is fragmented | Look for "KE payload missing in message" and compare the message sizes in the level 2 logs | Check that the extra key exchange payloads travel in IKE_INTERMEDIATE, since the initial IKE_SA_INIT messages cannot be fragmented |
What to change on strongSwan, in order
The sequence brings both peers onto a strongSwan release that supports ML-KEM, makes their key exchange lists match, and reloads the settings so the tunnel can negotiate post-quantum key exchange without a failed IKE round. Each step ends with a check you can run before moving on.
Confirm the installed strongSwan version
Run
swanctl --versionon each peer, orswanctl -Von 6.0.5 and later, to see the release in use. ML-KEM keywords arrived in strongSwan 6.0.0, released on 3 December 2024, so a release older than 6.0.0 needs an upgrade before anything else. Packaged installs from a distribution may carry a patched build, so compare the reported version with the release notes for your package. The step is done when both peers report a version that includes ML-KEM support.Check which crypto library provides ML-KEM
ML-KEM is provided by one of several plugins: botan with Botan 3.6.0 or newer, wolfssl with wolfSSL 5.7.4 or newer, openssl with AWS-LC 1.37.0 or newer, or the ml plugin. Strongswan 6.0.2 also states that ML-KEM is supported through OpenSSL 3.5 or newer. Run
swanctl --list-algsand look for the ML-KEM entries, which show the implementing plugin in square brackets. The step is done when the list shows mlkem512, mlkem768 or mlkem1024 and you know which plugin supplies them.Build with the ml plugin if needed
If no library on your build provides ML-KEM, rebuild with the ml plugin using the
--enable-mlconfigure option, which has been available since 6.0.0. The ml plugin is marked experimental and is not enabled by default, so a stock build will not include it. Packaged and containerized installs should check their build options first, because the vendor or image maintainer may have set the flag already. The step is done when the algorithm list from the previous step shows ML-KEM from the expected plugin.Set matching proposals on both peers
In
swanctl.conf, setconnections.<conn>.proposalsfor the IKE exchange andchildren.<child>.esp_proposalsfor ESP on both peers. Use akeX_prefix to add ML-KEM after the classic exchange, for examplex25519-ke1_mlkem768, which adds ML-KEM-768 after X25519. Peers must agree on the key exchange method for each round, so thekeX_lists must match on both sides. The step is done when the two configurations show the same round sequence for each connection.Mark optional rounds with keX_none
Where a round should be optional, add
keX_noneto the proposal so that a peer which does not offer that round can still connect. This matters for peers that cannot handle an additional exchange, such as Windows clients not configured for PFS, which strongSwan 6.0.2 notes may have trouble with the default proposals. If a connection still fails, the release notes suggest a proposal without key exchange methods may be needed. The step is done when each optional round is marked and the peers agree on which rounds are required.Reload the settings without restarting
Apply the configuration with
swanctl --reload-settingsor by sending SIGHUP to the charon process. Restarting the daemon is not needed for proposal changes, but confirm that the reload reported no errors in the log. Existing SAs may keep their old proposals until they are rekeyed or re-established. The step is done when the reload completes and the new proposals appear in the logs for the next negotiation.Confirm the negotiation in the logs
Raise the IKE and CFG logging to level 2 in a charon logger section of
strongswan.conf, then reload. Attempt a new connection and check for the messages fromike_init.c, such as "no acceptable proposal found" or "peer didn't accept key exchange method", which show where the peers disagree. Note thatswanctl --list-sasprints only the final group, so the logs are the place to see each round. The step is done when a fresh connection completes, and you can see the key exchange rounds that were negotiated.
How the fix differs for source builds, packages and containers
When you compile strongSwan yourself, you choose which plugins exist in the binary, so the ML-KEM fix starts at the configure step. The ml plugin is the strongSwan-native implementation of Module-Lattice-based crypto (ML-KEM), is marked experimental, and is not enabled by default, so it has to be requested explicitly with the configure option --enable-ml on a 6.0.0 or later source tree. Alternatively, ML-KEM comes from a crypto library plugin such as botan, wolfssl or openssl, each with its own minimum library version.
- Configure option: Add
--enable-mlto./configurewhen you want the ml plugin, then rebuild and reinstall. - Library plugin versions: If you use the botan, wolfssl or openssl plugin, confirm the library version meets the minimum the plugin documentation lists before you build.
- Installed version: Run
swanctl --versionto confirm the binary is the release you built, since the short option is-Vfrom 6.0.5 onward. - Loaded algorithms: Run
swanctl --list-algsafter the daemon restarts to confirm the ML-KEM keyword appears with a plugin name in square brackets. - Your responsibility: Build flags, library choice and the source tree version are all yours, so changes here do not need a vendor.
After rebuilding, check that swanctl --list-algs shows the ML-KEM algorithm before you edit any connection proposals.
A distribution package ships strongSwan with build options already chosen by the package maintainer, so you may not be able to add --enable-ml or choose a library plugin yourself. Your first step is to confirm what the installed binary includes, not what the upstream release notes say it can do. Packages can also lag behind the 6.0.0 release that introduced ML-KEM, so the version you run may not include the keyword at all.
- Check the installed build: Run
swanctl --versionandswanctl --list-algsto see the release and whether any ML-KEM keyword is loaded. - Read the package metadata: Use your package manager to list the installed version and the plugins it provides, and compare them with the plugin list in the strongSwan documentation.
- Ask the maintainer: If the package does not load ML-KEM, ask the distribution maintainer whether a later build enables the ml plugin or a library plugin, and on which timeline.
- Do not rebuild over the package: Replacing a packaged binary with a self-built one can break updates and support, so confirm this with your own change control first.
- Configuration only after verification: Change proposals in
swanctl.confonly once the loaded algorithms show ML-KEM.
If the package has no ML-KEM support, the path forward is a maintainer or repository change, not a configuration edit.
A container image bundles the strongSwan binary and the libraries it links against, so the fix depends on which image tag you pinned. Because the image is pinned to a version, your configuration changes must match what that version loads. Rebuilding your own image is the operator's path when you control the Dockerfile, while a third-party image is controlled by its publisher.
- Identify the pinned tag: Record the exact image tag and check the strongSwan version inside it with
swanctl --version. - Check loaded algorithms in the container: Run
swanctl --list-algsinside the running container, since the host and the container can have different builds. - Build a derived image if you own it: If your Dockerfile controls the build, add the configure option or library plugin there and rebuild, then pin the new tag.
- Request an updated third-party image: If the image comes from another publisher, ask them whether a version with ML-KEM support is available and which build options it uses.
- Keep the configuration aligned: Change
connections.<conn>.proposalsonly after the image shows the ML-KEM keyword loaded, and deploy the matching config to the same tag.
Record the image tag alongside the proposal change so the two stay matched during any later rollback.
In a hosted service or an appliance, the vendor sets the strongSwan build and often the configuration surface as well. Your options are limited to the settings the vendor exposes, so you cannot enable the ml plugin or choose a library plugin yourself. Start by confirming with the vendor which strongSwan release and build options they ship, and whether ML-KEM is loaded in your deployment.
- Find the strongSwan version: Check the appliance or service documentation or admin interface for the release it runs, and ask the vendor if it is not shown.
- Check what the vendor exposes: Look for proposal or key exchange settings in the admin interface that map to the
proposalsoptions, and note any that are fixed. - Ask the vendor about the build: Ask whether the build includes the ml plugin or a library plugin with ML-KEM, and whether that build is supported for your deployment.
- Request a version or setting change: If ML-KEM is absent, request an updated release or an exposed setting in writing, and record the vendor's answer.
- Do not modify the vendor build: Changes to the binary or plugin set on a managed appliance can void support, so route build-level changes through the vendor.
Before you change any setting you control, confirm in writing that the vendor build loads ML-KEM.
Which strongSwan log message and check point to the right fix?
The path starts at the log line 'no acceptable proposal found' in the charon log. First, check with swanctl --list-algs whether ML-KEM is loaded from a plugin. Then compare the keX_ and keX_none entries in both peers' proposals. Finally, see whether the failure occurs during IKE_SA_INIT fragmentation. Each branch leads to a different change in swanctl.conf or strongswan.conf, and the flowchart shows the order to check them.
Decision path from the charon log message to the matching fix.
How to confirm the strongSwan fix holds
After you change the proposals, confirm the fix in two places: the loaded algorithms and the logs of a live negotiation. Run swanctl --list-algs first and check that the ML-KEM keywords, such as mlkem768, appear with the plugin that implements them in square brackets. If they are missing, the plugin is not loaded, and no proposal change will take effect. Next, run swanctl --list-sas on an established tunnel. Be aware that the documented example prints only the final key exchange group in the IKE line, such as CURVE_25519, so this output alone cannot show that every round completed. It confirms that a tunnel is up, not which exchanges were used to reach it.
To verify each round, raise logging to level 2 by setting ike = 2 and cfg = 2 in the charon logger section of strongswan.conf, then apply the change with swanctl --reload-settings. Bring the tunnel up again and read the IKE subsystem output. Look for the level 1 messages that signal failure, such as "no acceptable proposal found", "peer didn't accept key exchange method" and "KE payload missing in message". Their absence, together with a completed negotiation, is the evidence you want. If you see one of them, compare the keX_ entries in connections.<conn>.proposals on both peers, since a mismatch there is the documented cause.
Keep the level 2 log running for a period after the change, rather than checking once. Watch for repeated reconnects, and for clients that come back with an older proposal that lacks the post-quantum round. Such a client will either fail to negotiate or silently fall back to a classic exchange, and a single successful test will not reveal either case. Confirm with each client group you support, including any Windows clients that are not configured for PFS, which the 6.0.2 release notes flag as a possible source of trouble. Once you are satisfied, return logging to level 1 to limit log volume.
What can break after a proposal change
Changing the strongSwan proposal list affects every peer that negotiates with the gateway, not only the ones you intended to upgrade. The cards below cover the peer types and automation most likely to fail when post-quantum key exchange is added, with the check to run before each change.
Older clients offering only classic exchanges
Clients that were built before ML-KEM support offer only classic key exchanges in IKE_SA_INIT. If the gateway's connections.<conn>.proposals now requires an additional keX_ round that such a client does not offer, both sides must agree on each round, and the negotiation fails. Before the change, list which remote peers connect to each connection and record the key exchange methods each one sends. Test one older client against the new proposal in a staging connection. Look for the log line "no acceptable proposal found" in the IKE subsystem at level 1.
Automation that pins the proposal list
Scripts, configuration management or templates that write proposals or esp_proposals values into swanctl.conf can overwrite a new post-quantum proposal with an older hardcoded list. The result is a mismatch between what the gateway now expects and what the peer receives. Search your repositories and deployment tooling for proposals = and esp_proposals = before you change anything. Confirm that the rendered file on the gateway matches the intended list by reading it after the next deployment.
Windows clients not configured for PFS
The 6.0.2 release notes say that Windows clients not configured for PFS may have trouble with the default proposals, which now include all supported key exchange methods. If your Windows clients do not use PFS, the peer may reject or fail the extra exchange rounds. Check each Windows client's PFS setting against what the gateway proposes before you upgrade or change the default. If problems appear, the 6.0.2 notes say proposals without key exchange methods may be needed, so test that fallback before you apply it to production.
6.0.2 release notesCompliance mode and FIPS configurations
Compliance-mode or FIPS builds may use a different crypto backend, and the ML-KEM keywords only work when the plugin that provides them is loaded. The botan, wolfssl, openssl and ml plugins each need a minimum library version, and the ml plugin is experimental and not enabled by default. Before the change, run swanctl --list-algs on the gateway and confirm that the ML-KEM algorithms appear with the plugin you expect. Compare the output with the build that your compliance review approved.
Fragmentation of initial exchange messages
The 6.0.0 notes say that the initial IKE_SA_INIT messages cannot be fragmented, because RFC 7383 fragmentation only works with encrypted messages. The extra key exchange payloads travel in IKE_INTERMEDIATE, which is encrypted. If a path or firewall between peers blocks or drops large initial messages, the negotiation can fail before any post-quantum round starts. Before the change, confirm that UDP port 500 and 4500 traffic is not size-limited on the path. Check the gateway logs for "KE payload missing in message".
6.0.0 release notesWhen to bring in outside help for a strongSwan migration
Some strongSwan tunnel failures are routine to fix in house: a proposal list that differs between peers, a build that predates ML-KEM, or a keX_ round that one side refuses. Other situations call for outside help earlier. If the gateway is run by a vendor or managed service, you may not control the swanctl.conf settings, the installed plugins or the build, so the first step is to ask the provider whether ML-KEM is available and which release carries it. The same applies when many remote clients fail at once after a change. A single failing client points to that client's proposal list. A broad failure points to the gateway, a shared proposal default or a fragmentation problem on the path, and that is harder to isolate without the logs from both sides.
Get help when the build cannot be upgraded to a release that supports ML-KEM. The strongSwan 6.0.0 release added the mlkem512, mlkem768 and mlkem1024 keywords through the botan, wolfssl, openssl or ml plugins, and the 6.0.2 release added support through OpenSSL 3.5 or newer. If your distribution ships an older package and you cannot move to a supported release or rebuild with the right library versions, the change is a platform decision that a qualified engineer should scope. Confirm the library minimums listed in the strongSwan plugin documentation against what your platform provides. Also get help when a regulated environment needs evidence of the configuration change: the before and after swanctl.conf files, the swanctl --version and swanctl --list-algs output, and the logs that show the agreed key exchanges.
DeployOpen plans, upgrades, configures and documents self-hosted components, including strongSwan gateways, and prepares evidence for auditors. DeployOpen does not issue audit reports or certifications, and independent auditors and certification bodies make those determinations. Ask any outside party for a written scope that names the systems, the version targets, the rollback plan and the evidence they will deliver.
Questions operators ask after a strongSwan post-quantum negotiation failure
Is an existing strongSwan tunnel still encrypted if post-quantum negotiation fails?
A failed negotiation affects new connection attempts, not traffic on a tunnel that is already up. The sources supplied for this page do not describe how an established SA behaves when a later rekey fails, so confirm that with the strongSwan documentation for your version before relying on it. To check the state of an established tunnel, run swanctl --list-sas. The documented example prints only the final key exchange group, such as CURVE_25519, on the IKE line, so it does not show whether ML-KEM was part of the exchange. For that, raise logging to level 2 as described in the strongSwan logging documentation and look at the exchange messages.
Is a strongSwan post-quantum negotiation failure urgent?
It depends on the connection. A failure means the two peers could not agree on a key exchange method, so the affected tunnel or client cannot be established until the proposals are aligned. Whether that is urgent for your organization is a decision about the business impact of that connection, not something the sources settle. Start by checking the proposals on both peers. The mismatch is most often a difference in the keX_ lists, because the strongSwan 6.0.0 release notes say peers must agree on a key exchange method for each round unless the round is made optional with keX_none.
Can I silence the strongSwan post-quantum error by changing logging?
Changing logging does not fix the negotiation. The log lines such as "no acceptable proposal found" or "peer didn't accept key exchange method" report a real mismatch, and hiding them leaves the tunnel broken. Logging changes are useful only to see more detail while you diagnose. If you raise the ike and cfg levels to 2 in a charon logger section of strongswan.conf for that purpose, treat it as a temporary step: apply it with swanctl --reload-settings or SIGHUP, collect what you need, and return the level to its default of 1 once the cause is fixed. The fix itself is aligning the proposals.
Why does strongSwan fail after I enable ML-KEM?
The most common cause is a proposal mismatch between the peers. The ML-KEM keywords are added after a classic exchange with the keX_ prefix, for example x25519-ke1_mlkem768, and both peers must agree on each round. A second cause is fragmentation: the strongSwan 6.0.0 release notes say the initial IKE_SA_INIT messages cannot be fragmented, and the extra key exchange payloads travel in IKE_INTERMEDIATE. A third is the default proposal. The 6.0.2 release notes say the default IKE proposal includes all supported key exchange methods, and that some peers, such as Windows clients not configured for PFS, may have trouble, in which case proposals without key exchange methods may be needed. Check the ike_init.c log lines to see which of these applies.
What should I do if the strongSwan server cannot be upgraded?
The sources supplied for this page describe ML-KEM support in strongSwan 6.0.0 and later, with the botan, wolfssl, openssl and ml plugins, and with OpenSSL 3.5 or newer in 6.0.2. They do not describe a fix for an older release, so the route for a server that cannot move to a supporting version is not covered here. Confirm your installed version with swanctl --version, and check which algorithms are loaded with swanctl --list-algs. Whether an older release can be kept in service, or whether a configuration can avoid the failure, is a question for the strongSwan documentation for your version and for your own change process. A decision on the upgrade path belongs with the people who own that server.
Which strongSwan version and plugin do I need for ML-KEM?
The strongSwan 6.0.0 release of 3 December 2024 added ML-KEM through the keywords mlkem512, mlkem768 and mlkem1024, provided by one of four plugins: botan with Botan 3.6.0 or newer, wolfssl with wolfSSL 5.7.4 or newer, openssl with AWS-LC 1.37.0 or newer, or the new ml plugin. The ml plugin is experimental and is not enabled by default; it is built with --enable-ml. The 6.0.2 release of 14 July 2025 states that ML-KEM is now supported via OpenSSL 3.5 or newer. Confirm which plugin your build provides with swanctl --list-algs, which shows each loaded algorithm and the plugin in square brackets.
Why does my strongSwan tunnel fail with Windows clients after post-quantum key exchange?
The strongSwan 6.0.2 release notes say that some peers, such as Windows clients not configured for perfect forward secrecy (PFS), may have trouble when the default proposals include all supported key exchange methods. The notes say that in that case proposals without key exchange methods may be needed. Check the connection's proposals setting in swanctl.conf and the matching setting on the client. The sources do not describe the Windows client configuration itself, so confirm that with the client vendor's documentation.
How DeployOpen helps with strongSwan post-quantum migrations
DeployOpen works through strongSwan post-quantum negotiation failures in four stages: scoping the written engagement, building and testing the configuration, handing over documented results, and supporting the environment afterward. Work is fixed-scope, with ongoing support available as a retainer.
How we scope
- The written scope lists which strongSwan versions, gateways and clients are covered by the engagement.
- We confirm whether the ML-KEM build comes from the botan, wolfssl, openssl or ml plugin in your environment.
- We agree in writing which peers, such as Windows or other non-strongSwan clients, are in the negotiation test set.
How we build
- We check the installed version with swanctl --version and the loaded algorithms with swanctl --list-algs.
- We align the connections.<conn>.proposals and esp_proposals lists on both peers, including keX_ and keX_none entries.
- We raise ike and cfg logging to level 2 in strongswan.conf and reproduce the failing exchange against the configuration.
How we hand over
- The handover documents each proposal change, the peer versions tested and the log messages observed during testing.
- We provide a retest of the affected tunnels and clients after each configuration change is applied and reloaded.
- The documentation records which fallback proposals were used, so your team can review them in future audits.
How we support
- Ongoing support is available as a retainer for upgrades, such as moving to a newer strongSwan release and its key exchange options.
- Support covers re-testing when peers change, including client updates that alter key exchange behavior.
- Ask for the support terms, response expectations and retest scope in the written quote before the engagement starts.

