How to enable post-quantum key exchange on strongSwan

strongSwan supports ML-KEM key exchange under RFC 9370 from version 6.0.0, but it is not on by default: you add a keX_ method to an IKEv2 proposal and verify the backend and peers.

On this page

Can you enable post-quantum key exchange on strongSwan today?

An administrator with a site-to-site tunnel that needs a post-quantum key exchange can use strongSwan, since the project says it supports ML-KEM (FIPS 203) as an additional key exchange under RFC 9370. The strongSwan 6.0.0 release added this support, and the project home page lists version 6.1.0, dated 2026-09-07, as the latest release. ML-KEM is not used by default: it is off unless a connection's proposal names it, for example x25519-ke1_mlkem768. Enabling it is therefore a change to connections.<conn>.proposals in swanctl.conf, paired with a crypto backend that provides ML-KEM, such as Botan 3.6.0 or later, wolfSSL 5.7.4 or later, AWS-LC 1.37.0 or later, or OpenSSL 3.5 or later for the openssl plugin.

Read the plugin status before you commit. The plugin list marks the software ml plugin as experimental, so an administrator running a production tunnel should confirm with the vendor which backend and plugin combination they are expected to use. The facts reviewed do not show a FIPS or CNSA 2.0 validation for strongSwan or for any of these backends, and the 6.1.0 release post and home page make no FIPS or CNSA claim. The security recommendations page includes a CNSA 2.0 style proposal that combines ECP-384 with ML-KEM-1024, but that is a configuration example, not a validation. Vendor-risk reviewers should record that no validation was found and ask the project or its commercial licensor for any validation status in writing.

Before changing a live tunnel, test the new proposal against each peer. Post-quantum payloads are too large to fragment in the unencrypted IKE_SA_INIT, so ML-KEM travels in IKE_INTERMEDIATE and IKE_FOLLOWUP_KE exchanges. Confirm that the peer supports the same key exchange and that the tunnel comes up with the change in place.

Which strongSwan versions and backends support ML-KEM

This table lists each strongSwan release and the backend libraries that provide ML-KEM, so you can match your build to a supported combination. Read each row as the earliest version where a backend or feature appears, and confirm your plugin set in the 6.x documentation before you rely on it. Every date and source below was checked on 2026-12-03.

Version (release date)ML-KEM backends and pluginsNotes for administrators
6.0.0 (2024-12-03)Botan 3.6.0 or later, wolfSSL 5.7.4 or later, AWS-LC 1.37.0 or later through the openssl plugin, and the experimental ml pluginML-KEM (FIPS 203) added with mlkem512, mlkem768 and mlkem1024. The openssl plugin is enabled by default in 6.0. The ml plugin is marked experimental.
6.0.0 (2024-12-03)Removed plugins: bliss, newhope and ntruThese post-quantum plugins were removed in 6.0. Do not expect them in configurations written for earlier releases.
6.0.2 (2025-07-14)OpenSSL 3.5 or laterAdds ML-KEM support through OpenSSL 3.5 or later. Default ESP and AH proposals now include key exchange methods plus none, so PFS is optional.
6.0.2 (2025-07-14)Default ESP and AH proposalsSome peers, such as Windows clients not configured for PFS, may fail with the new defaults. Configure proposals without key exchange methods where needed.
6.1.0 (2026-09-07)Latest release listed on the strongSwan home pageConfirm which backend and plugin set your build includes, because the 6.1.0 release notes do not restate the ML-KEM backend list.
All listed versionsML-DSA and SLH-DSANot found on the pages checked. The IKEv2 PQC authentication draft appears on the standards page with no release named.
All listed versionsHybrid use in proposalsML-KEM is added with the keX_ prefix, for example x25519-ke1_mlkem768, and is exchanged after a classic exchange because the payload is too large for IKE_SA_INIT.

How do you add ML-KEM to a strongSwan IKEv2 proposal?

This sequence adds ML-KEM to the IKEv2 key exchange of a strongSwan connection by setting an explicit proposal in swanctl.conf and confirming it is negotiated. The default proposal stays classical, so the change must be made deliberately and checked in the logs. The steps below cover the version and backend checks, the plugin check, the proposal change, the reload and the log check.

  1. Confirm the strongSwan version and crypto backend

    The administrator checks the installed strongSwan version with swanctl --version or charon --version and compares it with the release notes. ML-KEM support was added in 6.0.0, backed by Botan 3.6.0 or later, wolfSSL 5.7.4 or later, or AWS-LC 1.37.0 or later through the openssl plugin. In 6.0.2, support was added through OpenSSL 3.5 or later. The 6.1.0 release, dated 2026-09-07, is the latest listed release. Confirm which backend library your build links against, because that determines whether ML-KEM is available. This step is complete when you have written down the version and backend and matched them to one of the supported combinations.

  2. Check that the crypto plugin is loaded

    Run the plugin list to confirm that the backend plugin providing ML-KEM is loaded in the running daemon. The openssl plugin is enabled by default in 6.0, while the software ml plugin is marked experimental in the plugin list. Check the output of swanctl --stats or the charon log at startup for the loaded plugins, and confirm that the backend you identified in the previous step appears. If the plugin is missing, the build or the plugin configuration must be fixed before continuing. This step is complete when the plugin that provides ML-KEM appears in the loaded list.

  3. Set the proposal in swanctl.conf

    Open the connection in /etc/swanctl/swanctl.conf and set connections.<conn>.proposals to an explicit list. The default value does not include ML-KEM, so the key exchange stays classical until you change this setting. A hybrid example is x25519-ke1_mlkem768, which uses the keX_ prefix from RFC 9370 to add ML-KEM as an additional exchange after the classic one. The strongSwan security recommendations also list a CNSA 2.0 style combination, aes256-sha384-sha512-ecp384-ke1_mlkem1024. Choose the combination your peers support, because both ends must agree on the proposal. This step is complete when the setting in the file names an ML-KEM method and the classic group you intend to use.

  4. Reload the configuration

    Apply the new configuration to the running daemon with swanctl --load-all or by restarting the charon service. Check that the reload completes without errors in the output or in the system log. Note that the extra key exchange travels in IKE_INTERMEDIATE (RFC 9242) and IKE_FOLLOWUP_KE exchanges, so the tunnel will not come up with the new proposal until the peer also accepts it. Ask the peer administrator to confirm they have a matching proposal. This step is complete when the reload reports success and the connection is listed with the new proposal.

  5. Verify the negotiated proposal in the logs

    Bring up the tunnel and check the charon log for the negotiated IKE proposal. Look for the ML-KEM method in the selected proposal line and for the IKE_INTERMEDIATE and IKE_FOLLOWUP_KE exchanges. If the log shows a classical proposal only, the peer did not accept the ML-KEM method, or the proposal setting was not applied, and you should check both ends. This is the step that confirms the connection actually uses post-quantum key exchange rather than only being configured for it. This step is complete when the log shows the ML-KEM method in the negotiated proposal for the connection.

Which strongSwan settings control post-quantum key exchange?

Enabling post-quantum key exchange in strongSwan depends on a small set of settings: the IKE and ESP proposals, the IKE version, the crypto plugins that back them, and signature constraints for authentication. Each card covers one setting and what to check before changing it on a site-to-site tunnel.

IKE proposals in connections

The connections.<conn>.proposals setting sets the IKE algorithm proposals and defaults to default. The default proposals are built from the loaded plugins and do not name ML-KEM, so post-quantum key exchange is not active unless you add it. To add it, include a key exchange method with the ke1_ prefix from RFC 9370, for example x25519-ke1_mlkem768, and confirm the peer supports the same method before deploying.

Proposal syntax docs

ESP proposals and PFS

The children esp_proposals setting sets ESP proposals and defaults to default. Since strongSwan 6.0.2, the default ESP and AH proposals include none and all supported key exchange methods, which makes perfect forward secrecy optional. The 6.0.2 release notes warn that some peers, such as Windows clients not configured for PFS, may fail with these defaults, so configure proposals without key exchange methods where needed and test each peer.

6.0.2 release post

The ml and openssl plugins

ML-KEM in strongSwan depends on a crypto backend. Version 6.0.0 added the ml plugin, which is marked experimental in the plugin list, and ML-KEM through the openssl plugin, which is enabled by default in 6.0. Botan 3.6.0 or later, wolfSSL 5.7.4 or later, and AWS-LC 1.37.0 or later are listed as backends, and OpenSSL 3.5 or later is needed for ML-KEM support in 6.0.2. Confirm which plugins your build loads before relying on a proposal.

Plugin list

IKE version and IKEv1

The connections.<conn>.version setting defaults to 2 for IKEv2. The 6.1 notes say IKEv1 is disabled by default at build time, must be enabled with --enable-ikev1, and will be removed in a future release. Post-quantum key exchange is configured for IKEv2 connections, so plan to move any IKEv1 tunnels to IKEv2 rather than building new configuration on IKEv1.

swanctl.conf reference

Signature constraints for authentication

The charon.signature_authentication_constraints setting controls which signature algorithms IKEv2 authentication accepts, and restrictions set in remote.auth apply to IKEv2 by default. Using pubkey-sha256-sha384-sha512 narrows accepted hashes, but these constraints cover RSA, ECDSA and EdDSA certificates. strongSwan documentation lists draft ML-DSA and IKEv2 PQC authentication standards, but the 6.1.0 release notes do not mention ML-DSA, so treat post-quantum signature authentication as unconfirmed and check with the project before planning it.

Security recommendations

How does enablement differ by strongSwan version and crypto backend?

strongSwan 6.0.0, released 2024-12-03, added ML-KEM (FIPS 203) with the variants mlkem512, mlkem768 and mlkem1024. In that release, ML-KEM is backed by Botan 3.6.0 or later, wolfSSL 5.7.4 or later, or AWS-LC 1.37.0 or later used through the openssl plugin. The openssl plugin is enabled by default in 6.0, so the backend you build against determines which ML-KEM variants are available.

  • Backend choice: Botan 3.6.0 or later, wolfSSL 5.7.4 or later, or AWS-LC 1.37.0 or later through the openssl plugin. Confirm which library your build links against.
  • Variants: mlkem512, mlkem768 and mlkem1024 are listed for this release. Check your build for which are present.
  • Software ml plugin: The ml plugin is marked experimental in the plugin list, so do not treat it as production-ready without confirming with the vendor.
  • Proposal syntax: ML-KEM is added as an extra exchange using the keX_ prefix from RFC 9370, for example x25519-ke1_mlkem768, rather than replacing the classic exchange.
  • Removed plugins: The bliss, newhope and ntru post-quantum plugins were removed in 6.0.

Before relying on this line, confirm the exact backend version in your deployment and that the mlkem variant you need is compiled in.

Why does ML-KEM travel in extra exchanges rather than IKE_SA_INIT?

Post-quantum key exchange payloads are too large to fragment in the first IKEv2 message. The initial exchange, IKE_SA_INIT, travels unencrypted and must fit within the fragmentation limits of the path. strongSwan 6.0.0 states that ML-KEM public keys and ciphertexts are too large for that exchange, so the post-quantum method is not carried there. Instead, the classic key exchange (for example, x25519) runs first as the base exchange, and the ML-KEM exchange follows as an additional one. Administrators who see an IKE_SA_INIT that contains only a classic group should expect this and not treat it as a fallback to classic-only key exchange.

The extra exchanges are IKE_INTERMEDIATE and IKE_FOLLOWUP_KE, defined in RFC 9242 and RFC 9370. Each key exchange named in a proposal with the keX_ prefix, such as x25519-ke1_mlkem768, is performed in its own message after the classic exchange completes. The ke1 slot carries ML-KEM in an IKE_INTERMEDIATE exchange, and any further key exchange slots follow in IKE_FOLLOWUP_KE. The keying material from every step feeds into the final SA keys. When reviewing a capture or debug log, confirm that the expected IKE_INTERMEDIATE message appears after IKE_SA_INIT and before IKE_AUTH, and that the peer also supports this sequence.

Confirm the peer handles the added round trips before you rely on the proposal. Because the post-quantum step adds messages before authentication, a peer or firewall that does not expect IKE_INTERMEDIATE may drop or reject the connection. Check that both ends run versions that support ML-KEM (strongSwan 6.0.0 or later with a supported crypto backend) and that no middlebox filters these message types. Check the proposal and handshake order in a lab tunnel with the peer's exact version before you apply the change to production links.

What does the IKEv2 handshake look like with an ML-KEM exchange?

The diagram starts with the initiator and responder running IKE_SA_INIT, which carries the classic Diffie-Hellman key exchange in an unencrypted, unfragmented message. Because post-quantum key exchange payloads are too large for that message, the ML-KEM exchange follows in an IKE_INTERMEDIATE exchange under RFC 9242, and the peers then run IKE_AUTH to authenticate with their certificates or keys. Check that both peers negotiate the same keX_ method from RFC 9370 and that each peer's proposal lists the ML-KEM method. This sequence is illustrative, and the exact message order follows the RFC 9370 proposal in use.

Illustrative IKEv2 message flow with a classic key exchange followed by an ML-KEM exchange.

What can break or silently stay classical?

Adding ML-KEM to strongSwan is not automatic. Several settings can leave a tunnel on classical key exchange, and some peers will fail once the post-quantum exchange is added. The cards below cover the cases to check before you call a tunnel post-quantum.

Proposals without a keX method

A proposal that names no key exchange method, such as aes256-sha384-prfsha384, negotiates classical key exchange only. The keX_ method for ML-KEM must appear in the proposal string to be offered. Read each connections.<conn>.proposals entry in swanctl.conf and confirm it contains an ML-KEM method, for example ke1_mlkem768. Check the negotiated exchange on the live SA, because a proposal can be accepted with a classical method if the peer does not offer the ML-KEM one.

Algorithm proposals

Peers that cannot fragment or follow RFC 9370

The post-quantum key exchange payloads are too large for the unencrypted IKE_SA_INIT, so strongSwan adds ML-KEM as an additional exchange after a classic one. A peer that cannot handle fragmentation, or that does not support RFC 9370 additional key exchanges, will fail the negotiation. Confirm with each peer's vendor that it supports RFC 9370 and fragmented IKE messages before you add an ML-KEM method. Keep fragmentation at its default of yes on your side and test the tunnel with every peer type you run.

6.0.0 release post

Windows clients and PFS in 6.0.2

Since 6.0.2, key exchange methods plus none are added to the default ESP and AH proposals, so PFS is optional. The 6.0.2 release notes warn that some peers, such as Windows clients not configured for PFS, may fail with the new defaults. If a Windows client peer exists, set an explicit esp_proposals value that matches what the client expects. Test the connection after upgrading to 6.0.2 or later.

6.0.2 release post

Experimental status of the ml plugin

The software ml plugin, which provides ML-KEM, is marked experimental in the 6.1 plugin list. The openssl plugin is enabled by default, and ML-KEM support through OpenSSL requires OpenSSL 3.5 or later according to the 6.0.2 notes. Confirm which backend your build actually uses for ML-KEM by checking the loaded plugins and the build options on the host. Do not treat an experimental plugin as production-ready without your own testing and a plan for its support status.

Plugin list

Default proposals with no ML-KEM named

The IKEv2 default proposals have no literal string. They include every algorithm from the loaded plugins that is not deprecated, and no ML-KEM method appears unless you name one. A connection that leaves proposals at default therefore uses classical key exchange even when the plugin is loaded. Replace the default with an explicit proposal that names an ML-KEM method and confirm on the live SA that it was negotiated.

swanctl.conf reference

ESP proposals that still need a PFS choice

The esp_proposals setting is separate from proposals, and an ML-KEM method in the IKE proposal does not change the ESP key exchange. ESP proposals still need an explicit PFS choice, because the 6.0.2 default makes PFS optional. Review every child SA's esp_proposals, and decide whether each one should include a key exchange method, so the child keys are protected as you intend.

swanctl.conf reference

Common questions about enabling ML-KEM on strongSwan

Is strongSwan quantum safe?

strongSwan does not carry a quantum-safe claim that this page can confirm. What the project documents is support for ML-KEM (FIPS 203) as a key exchange method, available in the 6.0 line and later, with variants mlkem512, mlkem768 and mlkem1024. Support for ML-KEM is not the same as a complete post-quantum deployment: certificate authentication in your tunnels may still rely on RSA or elliptic-curve keys, and the project's own post-quantum signature standards page does not name a release for ML-DSA. Confirm with the project which parts of your configuration are covered, and review the security recommendations page before making any statement to an assessor.

Which strongSwan version is needed for ML-KEM?

ML-KEM first appeared in strongSwan 6.0.0, released on 2024-12-03, backed by Botan, wolfSSL, AWS-LC or the OpenSSL plugin depending on your build. The 6.0.2 release, dated 2025-07-14, added ML-KEM support through OpenSSL 3.5 or later. The latest release listed on the project home page is 6.1.0, dated 2026-09-07. Check which crypto library your build links against, because the library version sets the minimum you need. The ml plugin is marked experimental in the plugin list, so confirm its status for your version before relying on it.

Does enabling post-quantum key exchange cost extra?

strongSwan is licensed under GPLv2, and the project states that commercial licensing options also exist, so the software itself has no published price on the home page. The cost you will carry comes from effort: testing proposals against every peer, updating certificates and configuration, and confirming that your chosen crypto library version is in place. Ask the project or a commercial licensor about support terms and licence fees if your deployment needs them, and ask your own team or a services provider to scope the testing and rollout work in writing.

What breaks when strongSwan adds ML-KEM to a proposal?

The main risk is peer incompatibility. Post-quantum key exchange payloads are too large for the unencrypted IKE_SA_INIT exchange, so ML-KEM is added as an extra exchange after a classic one using the keX_ prefix from RFC 9370, for example x25519-ke1_mlkem768. Peers that do not support these exchanges will fail to negotiate. The 6.0.2 notes also warn that some clients, such as Windows peers not configured for PFS, may fail with the revised default ESP proposals, so proposals without key exchange methods may need to be set explicitly. Test each peer before changing production proposals.

What should I ask the strongSwan project or a vendor before enabling ML-KEM?

Ask a precise set of questions so the answers can go into your change record:

  • Which strongSwan release and crypto library version are required for the proposal you plan to use?
  • Is the ml plugin still marked experimental for that release, and is it supported for production use?
  • Does the release support ML-DSA or SLH-DSA for certificate authentication, and if so, under which RFC or draft?
  • What is the planned deprecation timeline for IKEv1, which is disabled by default at build time and slated for removal?
  • What support terms and licensing options apply to your deployment?

Record each answer with a date, because project status can change between releases.

Can DeployOpen help configure and test ML-KEM on strongSwan?

DeployOpen can plan, implement and test post-quantum key exchange on strongSwan inside your own infrastructure, and can prepare the evidence your security and compliance teams need. Work of this kind usually covers a written inventory of current proposals and peers, a fixed-scope configuration change, interoperability testing against every peer in your VPN mesh, and a rollback plan. Scope, deliverables and timelines are agreed in writing before work starts. DeployOpen does not issue audit reports or certifications, so independent assessors remain responsible for any formal attestation.

How do I enable ML-KEM in a strongSwan proposal?

ML-KEM is not on by default in a proposal, so you add it explicitly with the keX_ prefix from RFC 9370. A hybrid example in swanctl.conf, for illustration only, names a classic exchange followed by an ML-KEM exchange in the proposals setting, for example x25519-ke1_mlkem768. Set the same proposal on both ends, then reload with swanctl. Confirm the exact syntax against the algorithm proposals page for your release before editing production files, and test on a non-production connection first.

What the facts do not show for strongSwan

The researched sources confirm ML-KEM key exchange in strongSwan but leave several signature, validation and packaging questions open. Each card below names one gap and what to ask the strongSwan project or your Linux distribution before you plan a site-to-site tunnel change.

ML-DSA certificate signatures

The standards page lists draft-ietf-lamps-dilithium-certificates and draft-ietf-ipsecme-ikev2-pqc-auth without a release name, but the 6.1.0 release post and notes do not mention ML-DSA. The pki --gen reference also lists no ML-DSA key type. Ask the project whether ML-DSA certificate authentication works in 6.1.0, which plugin provides it, and whether it is marked experimental. Until that is confirmed, plan tunnels around RSA, ECDSA or EdDSA certificates, and do not assume your current certificate authority can issue ML-DSA certificates.

IPsec standards page

SLH-DSA support

The sources checked for this page do not mention SLH-DSA, the stateless hash-based signature scheme, in strongSwan, its plugin list or its key generation tools. A search of the pages checked found no mention, which is not the same as confirmed absence. Ask the project directly whether SLH-DSA is planned for certificate or IKEv2 authentication, and whether any release has added it. If you need a hash-based signature option for long-lived certificates, do not treat strongSwan as covering it without a written answer.

Plugin list, 6.1 docs

FIPS or CNSA validation

The 6.1.0 release post does not mention FIPS or CNSA, and the home page does not mention FIPS certification or a FIPS mode. The security recommendations include a CNSA 2.0 style proposal that combines ECP-384 with ML-KEM-1024, but that shows a configuration option, not a validation. If a federal or regulated contract requires a validated module, ask the project for a named validation certificate, the exact module and version it covers, and the issuer. Ask your distribution whether its packaged build is the validated one, since a validation usually applies to a specific build.

Security recommendations

Post-quantum roadmap for distributions

The sources describe ML-KEM support in upstream releases from 6.0.0 onward, but they do not describe when Linux distributions will package a version that includes it. The 6.0.2 notes say OpenSSL 3.5 or later is needed for ML-KEM through that plugin, so the library your distribution ships also matters. Ask your distribution which strongSwan version and which crypto backend (openssl, botan, wolfssl or ml) it packages, whether ML-KEM is compiled in, and what its support window is. Confirm these in your own environment with the installed version and loaded plugins before changing proposals.

6.1.0 release post

How DeployOpen helps with strongSwan post-quantum key exchange

DeployOpen approaches enabling post-quantum key exchange in strongSwan as a scoped configuration project on your own gateways. We start from your current swanctl.conf proposals and peer list, then agree in writing which connections will carry a hybrid ML-KEM exchange and which will stay classic until peers are confirmed.

How we scope

  • Inventory every connection in swanctl.conf and record its current IKE and ESP proposals, version and authentication settings.
  • Confirm the strongSwan release and crypto library (OpenSSL 3.5 or later, Botan, wolfSSL or AWS-LC) that each gateway actually runs.
  • Agree in writing which peers and clients must accept the added ke1_mlkem exchange, and which will need a fallback proposal.

How we build

  • Draft proposals that pair a classic key exchange with an added keX_ ML-KEM method, following the RFC 9370 syntax in the strongSwan docs.
  • Test each change in a lab with the same strongSwan version and peer types, checking IKE_INTERMEDIATE and IKE_FOLLOWUP_KE exchanges complete.
  • Check the default ESP proposals on connections where a peer, such as a Windows client without PFS, may fail after the 6.0.2 default change.

How we hand over

  • Deliver the final swanctl.conf changes, a per-connection record of the proposals in use, and the test results from the lab.
  • Document the rollback steps for each connection, including how to restore the previous proposals if a peer fails to negotiate.
  • Record which connections remain classic, with the reason, so your security and vendor-risk teams have a current list to review.

How we support

  • Agree in writing whether follow-up tuning, upgrades to later strongSwan releases and peer retesting will be covered as an ongoing retainer.
  • Review each strongSwan point release for changes to proposal defaults or plugin status, and flag any that affect your connections.
  • Retest connections after peer software updates, so mixed deployments keep negotiating after either side changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.