What a post-quantum upgrade of strongSwan involves: software, plugins, configuration

A strongSwan post-quantum upgrade centers on the 6.x line, ML-KEM key exchange added as an extra exchange in IKEv2 proposals, and the openssl or ml plugins, with certificate signatures still classical.

On this page

Does a strongSwan post-quantum upgrade start with the 6.x release line?

The upgrade starts with key exchange, and the 6.x line is where it begins. As of 2026-12-03, the latest strongSwan release listed on the project home page is 6.1.0, dated 2026-09-07. ML-KEM key exchange arrived in 6.0.0, released 2024-12-03, and support through OpenSSL 3.5 or later came in 6.0.2, released 2025-07-14. The project's own pages describe no ML-DSA certificate support in any release checked, so certificate signatures are not yet covered by the same path. Confirm the current release on the strongSwan home page before you plan, since these facts were checked on 2026-12-03.

In a site-to-site tunnel, the public-key parts are the IKEv2 key exchange and the certificate signatures. The key exchange methods are set in the proposals value of each connection in swanctl.conf, and ML-KEM is added there with the ke1_ prefix, for example x25519-ke1_mlkem768. Certificate authentication uses RSA, ECDSA or EdDSA keys in X.509 certificates, which the pki --gen tool generates. Because the 6.x documentation lists no ML-DSA key type, the network team should treat the certificate side as a separate question from key exchange. Plan the key exchange change first, and record certificate signatures as still classical in the inventory.

Before you change any proposal, check which peers must accept it. Post-quantum key exchange payloads are too large for the unencrypted IKE_SA_INIT exchange, so ML-KEM runs as an extra exchange after a classic one, and every peer on the tunnel must support that pattern. Keep a classic proposal in place for peers that cannot negotiate ML-KEM, and test the change on one tunnel before applying it across the estate. Record the strongSwan version, the crypto library behind it, and the exact proposal string on each gateway, so the evidence matches what actually runs.

Which strongSwan versions and components carry which post-quantum facts

This table lists, for each strongSwan release and component, the post-quantum facts the project has published and the source for each one. Read each row as a separate claim tied to a named version or component, since support differs between 6.0.0, 6.0.2 and 6.1.0. The main takeaway is that ML-KEM key exchange is documented from 6.0.0 onward, while no ML-DSA support is named in the 6.1.0 materials checked.

Version or componentPost-quantum fact as publishedSource
6.0.0 (2024-12-03)Adds ML-KEM (FIPS 203) variants mlkem512, mlkem768 and mlkem1024, backed by Botan 3.6.0 or later, wolfSSL 5.7.4 or later, AWS-LC 1.37.0 or later through the openssl plugin, and a new ml pluginstrongSwan 6.0.0 release post
6.0.2 (2025-07-14)Adds ML-KEM support through OpenSSL 3.5 or laterstrongSwan 6.0.2 release post
6.1.0 (2026-09-07)Release notes and release post do not mention ML-DSA; the project's standards page lists ML-DSA-related drafts with no release namedstrongSwan 6.1.0 release post; IPsec and Related Standards page
bliss, newhope and ntru pluginsRemoved in strongSwan 6.0strongSwan 6.0.0 release post
openssl pluginEnabled by default in the 6.0 series; it is the route to ML-KEM through OpenSSL 3.5 or laterWhat's New in strongSwan 6.0
ml pluginSoftware ML-KEM plugin, marked experimental in the plugin listPlugin list, 6.1 docs
ML-KEM in proposalsNot on by default; added with the keX_ prefix from RFC 9370, for example x25519-ke1_mlkem768, and carried in IKE_INTERMEDIATE and IKE_FOLLOWUP_KE exchangesAlgorithm proposals page
pki --gen key typesGenerates RSA, ECDSA and EdDSA keys only; no ML-DSA key type is listedpki --gen reference, 6.1 docs

Which parts of strongSwan a post-quantum upgrade touches

A post-quantum change in strongSwan does not come from one switch. It is spread across the IKEv2 proposal syntax, the plugins that provide the algorithms, the certificate and key tooling, the signature rules applied to authentication, and the ESP settings for child SAs. Each part below needs its own check before a site-to-site tunnel is moved.

IKEv2 proposals and the keX_ prefix

ML-KEM is not active by default. A connection gets it only when its proposals setting names it with the keX_ prefix from RFC 9370, for example x25519-ke1_mlkem768. The extra key exchange travels in IKE_INTERMEDIATE and IKE_FOLLOWUP_KE exchanges, because post-quantum key exchange payloads are too large to fragment in the unencrypted IKE_SA_INIT. For the upgrade, check each connection's proposals line, confirm the peer accepts the same extra exchange, and test the tunnel after the change because the classic exchange still runs first.

Algorithm proposals docs

The openssl and ml plugins

ML-KEM is provided by the openssl plugin when OpenSSL 3.5 or later, AWS-LC 1.37.0 or later is present, or by the software-based ml plugin. The 6.0 notes say the openssl plugin is enabled by default, while the plugin list marks the ml plugin as experimental. The upgrade therefore depends on which library the build links against. Confirm the library version on the gateway and check which plugins are loaded before relying on any algorithm.

Plugin list, 6.1 docs

Certificates and keys via swanctl --load-creds

Certificates and keys are loaded by swanctl --load-creds from subdirectories of the swanctl directory, including x509, x509ca, rsa, ecdsa, pkcs8 and private, in DER or PEM encoding. A post-quantum change to authentication means replacing or adding the files in these directories and reloading them. Inventory each directory on every gateway, record which key type each file holds, and plan the reload window for each tunnel.

swanctl directory docs

pki --gen has no ML-DSA type

The pki --gen command creates RSA, ECDSA or EdDSA private keys, with RSA as the default --type. Its documentation page lists no ML-DSA key type, and the 6.1.0 release notes do not mention ML-DSA. Teams that need post-quantum certificate signatures cannot generate those keys with this tool based on the supplied documentation. Ask the strongSwan project or your vendor whether and when ML-DSA key generation is supported before scheduling certificate work.

Signature constraints in remote.auth

The remote.auth setting defaults to pubkey, and constraints such as pubkey-sha256-sha384-sha512 restrict which signature algorithms a peer may use. Those constraints also apply to IKEv2 authentication automatically unless charon.signature_authentication_constraints is disabled. The ike: prefix limits a constraint to IKEv2. Before changing any signature setting, list the signature algorithms each peer supports, because a restriction that excludes what a peer offers will block the tunnel.

Security recommendations docs

ESP proposals and PFS defaults

Since 6.0.2, the default ESP and AH proposals include every supported key exchange method plus none, so perfect forward secrecy is optional. Some peers, such as Windows clients not configured for PFS, may fail with these defaults. The fix is to set esp_proposals explicitly without key exchange methods where needed. Check each child SA's esp_proposals line after upgrading to 6.0.2 or later, and test with every peer that uses PFS.

6.0.2 release post

How the classic and ML-KEM exchanges sequence in an IKEv2 tunnel

The diagram starts with IKE_SA_INIT, where the peers agree on proposals and run a classic key exchange such as ECP or curve25519, and this first message stays small enough to avoid fragmentation. The ML-KEM exchange then follows as an additional step: IKE_INTERMEDIATE (RFC 9242) carries the ml-kem payload, and IKE_FOLLOWUP_KE can carry any further key exchanges. Authentication runs last in IKE_AUTH, where certificate signatures stay classical unless a separate post-quantum signature method is configured. The diagram is illustrative. Check in your own environment that both peers run a release with ML-KEM support, that the proposal names the ke1_mlkem key exchange, and that the proposal's key exchange sequence matches the peer's configuration.

Illustrative sequence of classic and ML-KEM exchanges in an IKEv2 tunnel.

How the upgrade differs by version line and by federal contract

The 6.0.x line is the first release family with ML-KEM support. strongSwan 6.0.0, released 2024-12-03, added ML-KEM (FIPS 203) in the variants mlkem512, mlkem768 and mlkem1024, and the 6.0.2 release, dated 2025-07-14, added ML-KEM support through OpenSSL 3.5 or later. Teams on this line should check which crypto backend their build uses, because the ML-KEM path depends on it.

  • Backend requirement: ML-KEM through the openssl plugin needs OpenSSL 3.5 or later, as stated for 6.0.2. Botan 3.6.0 or later, wolfSSL 5.7.4 or later and AWS-LC 1.37.0 or later are the other listed backends for 6.0.0.
  • Plugin status: The software ml plugin is marked experimental in the 6.0 plugin list, so it should not be treated as production-ready.
  • Opt-in key exchange: ML-KEM is not in the default proposals. An administrator adds it with the keX_ prefix from RFC 9370, for example x25519-ke1_mlkem768.
  • Removed plugins: The bliss, newhope and ntru plugins were removed in 6.0, so configurations that name them must change.

Confirm your exact 6.0.x point release and the backend library version before planning the change.

What a team should do next to scope a strongSwan post-quantum upgrade

This sequence turns a general interest in post-quantum key exchange into a verified inventory of the strongSwan version, plugins, peers and settings that a lab test can rely on. Each step ends with a check, so the team knows what it can decide before touching production tunnels.

  1. Inventory the running strongSwan version and plugins

    Record the strongSwan version on every gateway, using the version your package manager or the installed binary reports, and compare it against the latest release listed on the project home page, which at the time of checking was 6.1.0 dated 2026-09-07. Then list the plugins compiled into each build, since post-quantum key exchange depends on which crypto plugins are present and not only on the version number. Finish the step when every gateway has a row with its version, build options and plugin list, and any gateway running a release older than 6.0.0 is flagged, because the ML-KEM support described in these notes starts with 6.0.0.

  2. Confirm the openssl or ml plugin and library version

    Check that the openssl plugin or the software ml plugin is loaded, and record the version of the cryptographic library it links against. The 6.0 notes say the openssl plugin is enabled by default, while the plugin list marks the ml plugin as experimental. For ML-KEM through OpenSSL, the strongSwan 6.0.2 release post names OpenSSL 3.5 or later, and the 6.0.0 release post names Botan 3.6.0 or later, wolfSSL 5.7.4 or later and AWS-LC 1.37.0 or later. Finish the step when each gateway shows a loaded plugin and a library version that matches one of these listed minimums, or is marked as not meeting them.

  3. Test a hybrid proposal in a lab

    In a lab with a non-production peer, add a hybrid IKE proposal that combines a classic exchange with ML-KEM, using the keX_ prefix from RFC 9370, for example x25519-ke1_mlkem768 in the connections.<conn>.proposals setting. The proposals are set in swanctl.conf and default to the value default, so the lab connection should name the proposal explicitly. Confirm that the tunnel establishes and that the extra exchange runs in the IKE_INTERMEDIATE and IKE_FOLLOWUP_KE steps described in the proposal documentation. Finish the step when the lab log records a successful negotiation of the chosen proposal, and note the exact strongSwan version used for the test.

  4. Check that every peer supports the extra exchange

    Confirm, for each remote peer, client and platform that terminates the tunnel, whether it supports the additional key exchange used in the hybrid proposal. The strongSwan 6.0.0 notes explain that post-quantum key exchange payloads are too large to fragment in the unencrypted IKE_SA_INIT, which is why ML-KEM runs as an additional exchange after a classic one, so a peer that handles only the classic exchange will not complete the hybrid negotiation. Ask each peer vendor in writing for its support status, and record the answer with the peer's software version. Finish the step when every peer has a documented yes, no or unknown, and any peer marked no or unknown is listed as a blocker.

  5. Set PFS on ESP proposals for failing peers

    Since strongSwan 6.0.2, the default ESP and AH proposals include key exchange methods plus none, which makes perfect forward secrecy optional. The 6.0.2 release post warns that some peers, for example Windows clients not configured for PFS, may fail with the new defaults. For each peer that fails after the upgrade, set the children esp_proposals setting explicitly to a proposal that includes a key exchange method, and retest that tunnel. Finish the step when each failing peer either connects with a PFS proposal or is recorded as needing a different configuration, and the change is noted in the inventory.

  6. Record the certificate signature type

    For each gateway and peer, record the public-key type and signature algorithm used by its certificates, since these are the authentication keys that a future post-quantum move must replace. Use the pki --gen defaults as a reference point: RSA at 2048 bits, ECDSA at 384 bits, ed25519 at 256 bits, and ed448 at 456 bits. The security recommendations advise at least 2048 bits for RSA, 256 bits and preferably 384 for ECDSA, and EdDSA where all peers support it. The pki --gen reference does not list an ML-DSA key type, and the strongSwan notes do not confirm ML-DSA support in a released version, so record that as unconfirmed. Finish the step when every certificate is listed with its key type, size and signature algorithm, and the ML-DSA status is marked as not confirmed by the project's documents.

Questions engineers and vendor-risk reviewers ask about a strongSwan upgrade

Is a strongSwan upgrade quantum safe?

The supported answer is narrower than the question. strongSwan 6.0.0 added ML-KEM (FIPS 203) key exchange, with the variants mlkem512, mlkem768 and mlkem1024, and strongSwan 6.0.2 added ML-KEM support through OpenSSL 3.5 or later. The strongSwan home page says it supports multiple classic and post-quantum key exchanges under RFC 9370. Those statements cover key exchange only. The pubkey authentication in IKEv2 still uses RSA, ECDSA or EdDSA certificates, and the project's pages do not state that a configuration is quantum safe. Confirm with the project what your specific build and peers protect, and treat the key exchange and the certificates as separate items in your review.

Which strongSwan version is needed for post-quantum key exchange?

The first release that added ML-KEM was strongSwan 6.0.0, released 2024-12-03. That release needs Botan 3.6.0 or later, wolfSSL 5.7.4 or later, or AWS-LC 1.37.0 or later through the openssl plugin. strongSwan 6.0.2, released 2025-07-14, added ML-KEM through OpenSSL 3.5 or later. The latest release on the project home page is 6.1.0, dated 2026-09-07. Check the library version your build links against, because the library, not strongSwan alone, determines which ML-KEM variants are available. The ml plugin is marked experimental in the 6.1 plugin list.

Does the upgrade cost extra in licenses or time?

strongSwan's source code is licensed under GPLv2, and the home page says commercial licensing options exist. It names no separate product editions, so ask the project directly whether a commercial license is needed for your use. The software itself carries no listed price. Your effort depends on the number of tunnels, the peers involved, the library you build against, and how much testing your change process requires. Those are the drivers to size. Ask any implementation partner for a quote built on a written scope, and ask the project about licensing terms before you commit.

What breaks when you change the default proposals?

The main known breakage is in the default ESP proposals. Since strongSwan 6.0.2, all supported key exchange methods plus none are added to the default ESP and AH proposals, so perfect forward secrecy becomes optional. The 6.0.2 release post warns that some peers, for example Windows clients not configured for PFS, may fail with the new defaults. The fix named there is to configure proposals without key exchange methods for those peers. Adding ML-KEM to a proposal also adds IKE_INTERMEDIATE and IKE_FOLLOWUP_KE exchanges, because post-quantum payloads are too large to fragment in IKE_SA_INIT. Test every peer type before you change the proposal on production tunnels.

Does strongSwan support ML-DSA certificates?

The project's standards page lists draft-ietf-lamps-dilithium-certificates (ML-DSA algorithm identifiers) and draft-ietf-ipsecme-ikev2-pqc-auth (IKEv2 signature authentication using PQC) without a release. The page names no release for either draft. The 6.1.0 release post and the 6.0 notes do not mention ML-DSA, and the pki --gen reference lists no ML-DSA key type. On the pages checked on 2026-12-03, no ML-DSA support is documented. Ask the project for the release in which ML-DSA certificate authentication is available, and do not plan around it until the project confirms.

What should we ask the strongSwan project before upgrading?

Ask for these items in writing, with the release and the date of the answer:

  • Which ML-KEM variants and key exchange combinations the release supports, and which library versions it needs.
  • The release in which ML-DSA certificate authentication is available, if any.
  • Whether commercial licensing is required for your use, and on what terms.
  • Any published deprecation plan for IKEv1, which the 6.1 notes say will be removed in a future release.
  • Any statement on FIPS or CNSA 2.0 support. The 6.1.0 release post does not mention either, though the security recommendations include a CNSA 2.0 style proposal.

Record each answer with the date it was given, because the project's pages change between releases.

Can our team do the upgrade alone, or do we need outside help?

A team that already runs strongSwan with swanctl can usually handle the software upgrade in-house, since the configuration keys and certificate directories are documented. Outside help is most useful where the work is wide: many tunnels with mixed peers, a library change that affects other services, or interop testing with Windows and other clients where the PFS default can break connections. DeployOpen plans, implements, tests and supports self-hosted platforms inside your own infrastructure, and most engagements are fixed-scope with the scope agreed in writing before work starts. DeployOpen does not issue audit reports or certifications, and you should scope the engagement against your own peer list.

What strongSwan has not published on post-quantum signatures

strongSwan publishes detailed post-quantum key exchange documentation, but its signature story is thinner. The items below are the gaps a network team should close with the project or a vendor before scoping any certificate or authentication change.

No ML-DSA in pki --gen

The pki --gen reference for 6.1 generates RSA, ECDSA and EdDSA private keys only, with no ML-DSA key type listed. The 6.0 What's New page and the 6.1.0 release notes also do not mention ML-DSA. Ask the project whether ML-DSA key generation is planned, which release it would land in, and how an operator would create ML-DSA keys until then. Until an answer is in writing, treat certificate generation with post-quantum signature keys as unsupported in the pki tool.

pki --gen reference

Draft listed without a release

The IPsec and Related Standards page lists draft-ietf-ipsecme-ikev2-pqc-auth, which covers IKEv2 signature authentication with post-quantum algorithms, with no status mark and no release named. The 6.1.0 release post does not mention it. Ask the project which release, if any, implements this draft, and whether the implementation is interoperable with other vendors' builds of the same draft. A draft on a standards page is not evidence of shipped code.

IPsec standards page

No SLH-DSA mention

The pages checked for 6.1, including the plugin list, the pki --gen reference and the 6.0 What's New page, contain no mention of SLH-DSA. That leaves no documented hash-based signature option for certificates or IKEv2 authentication. Ask the project whether SLH-DSA is on its roadmap and whether any hash-based signature alternative to ML-DSA is considered for IKEv2. Do not assume SLH-DSA is available because it appears in general post-quantum guidance.

Plugin list, 6.1 docs

No FIPS or CNSA statement

The 6.1.0 release post does not mention FIPS or CNSA, and the home page names no FIPS certification or FIPS mode. The security recommendations include a CNSA 2.0 style proposal that combines ECP-384 with ML-KEM-1024, but that is a configuration example, not a compliance statement. Ask the project whether any FIPS validation or CNSA 2.0 conformance has been assessed, and for which build, module and version. Without a written answer, do not describe the build as FIPS validated or CNSA compliant.

6.1.0 release post

Experimental status of the ml plugin

The 6.0 notes and the 6.1 plugin list mark the software ml plugin, which provides ML-KEM, as experimental. The openssl plugin is enabled by default and backs ML-KEM through OpenSSL 3.5 or later. Ask the project which ML-KEM path it recommends for production, what the plugin's stability commitments are, and when the ml plugin is expected to leave experimental status. Ask the same question about any signature code path, since none is documented.

Plugin list, 6.1 docs

What can go wrong when strongSwan moves to ML-KEM key exchange

The main risk in adding ML-KEM to a strongSwan connection is that the extra key exchange can fail against a peer that does not expect it. ML-KEM is not included in a proposal unless the administrator names it, so a connection that adds a keX_ method such as x25519-ke1_mlkem768 depends on the far end accepting that method, the IKE_INTERMEDIATE (RFC 9242) and IKE_FOLLOWUP_KE exchanges that carry it, and the same method being negotiated on both sides. Before changing connections.<conn>.proposals on a production tunnel, confirm with the remote administrator or vendor which ML-KEM variants and extra key exchange methods their IKEv2 implementation supports, and test the change on a lab tunnel first. A peer that rejects the proposal will typically cause the connection to fail rather than fall back, so plan a rollback to the prior proposal string.

Middleboxes add a second, less visible risk. The strongSwan 6.0.0 release post states that post-quantum key exchange payloads are too large to fragment in the unencrypted IKE_SA_INIT, which is why ML-KEM is added as an additional exchange after a classic one. Even so, the follow-up messages can be large, and firewalls, NAT devices and load balancers on the path that filter or drop larger IKE packets can break the exchange in ways that look like peer failures. Ask the network team to confirm that UDP ports 500 and 4500 pass packets of the expected size on every path, and check fragmentation (default yes) on both ends during testing. The default proposals also carry a separate risk: they include every loaded algorithm not marked deprecated, so a configuration that names no ML-KEM method keeps negotiating classical algorithms only, and an operator who assumes the default covers ML-KEM will not get it.

PFS behavior is the third area to check, and it applies from release 6.0.2 onward. Since 6.0.2, the default ESP and AH proposals include all supported key exchange methods plus none, which makes perfect forward secrecy optional. The 6.0.2 release post warns that some peers, for example Windows clients not configured for PFS, may fail with these new defaults, and in that case proposals without key exchange methods must be configured explicitly. Teams running strongSwan 6.0.2 or later with Windows clients should test ESP negotiation with each client build and record whether PFS is required on their side. Confirm the exact strongSwan version on every gateway with swanctl --version before and after the upgrade, since the risks described here apply to different releases.

How DeployOpen helps scope and run a strongSwan post-quantum upgrade

DeployOpen approaches a strongSwan post-quantum upgrade as a fixed-scope engineering project. We start by establishing which strongSwan version, plugins and swanctl settings your gateways run, then agree in writing what the upgrade will cover before any change is made.

How we scope

  • We inventory your strongSwan version, plugin set and swanctl.conf proposals on each gateway, including which connections use IKEv2 and certificate authentication.
  • We record which peers, clients and certificate chains the upgrade must keep working with, so the written scope names every dependency up front.
  • Engagements are fixed-scope, so the deliverables, timeline and any proposal changes are agreed in writing before work starts. Ongoing support is available as a retainer.

How we build

  • We build and test the upgraded strongSwan packages and plugins in a lab that mirrors your production gateways, including the openssl or ml plugin your chosen build uses.
  • We test any post-quantum key exchange as an additional exchange after a classic one, checking that proposals with ML-KEM complete in your environment rather than assuming they do.
  • We check how default ESP proposals and PFS behavior affect existing peers, such as Windows clients, and document any proposal changes needed to keep them connecting.

How we hand over

  • We deliver the updated swanctl.conf, certificate and key layout, and a record of the exact strongSwan version and plugin list each gateway runs after the change.
  • We write runbooks covering the proposal settings changed, rollback steps and the peer-by-peer test results, so your team can repeat or audit the change.
  • We walk your administrators through the configuration and testing, and provide written evidence of what was changed and verified.

How we support

  • After handover, we can retest gateways when strongSwan releases a new version, such as a future release that changes default proposals or plugin status.
  • Ongoing upgrades, patching and continuous testing are available as a retainer, so proposal and peer compatibility is rechecked on a schedule your team agrees.
  • Where a peer cannot yet support a post-quantum exchange, we help document that gap and the interim settings, so the risk is recorded and owned.

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.