What a post-quantum upgrade of OpenSSL involves: builds and dependencies

OpenSSL 3.5 and later include ML-KEM, ML-DSA and SLH-DSA, and 3.5 turns on hybrid X25519MLKEM768 key exchange by default, so most of the upgrade is about the version you run, the FIPS provider you need and how TLS is configured.

On this page

Does a post-quantum upgrade of OpenSSL need new builds or hardware?

For most OpenSSL estates, a post-quantum upgrade is a version change, not a hardware or licence change. OpenSSL 3.5, a long term stable release supported until 2030-04-08, added ML-KEM, ML-DSA and SLH-DSA, and it enables hybrid key exchange by default, so the main requirement is running 3.5 or later. As of 2026-12-03, 4.0 and 4.1 are also supported releases, with 4.1 supported until 2027-11-23 and 4.0 until 2027-05-14. The facts supplied for this section name no hardware requirement and no licence change, so confirm both with the project's release notes and your own build configuration before planning.

The decision you face is whether your current OpenSSL line can move to 3.5 or later through a package update, or whether it needs a rebuild from source. Check which release your servers, clients and appliances actually run with openssl version, and check whether your distribution or vendor ships a 3.5 or later build. Where a vendor embeds OpenSSL, the vendor's build decides which version you get, so ask them which OpenSSL release and which build options their product uses. Hybrid key exchange also depends on the default groups list in that build, so do not assume the default is in force on a vendor build without checking.

A separate question is FIPS. The facts state that the OpenSSL 3.5.0 FIPS provider has not been validated, and that a validated provider such as 3.1.2 can be used with OpenSSL 3.5 libraries. Validated versions listed on the OpenSSL source page include 3.5.9 (NIST certificate 5586, FIPS 140-3) and 3.1.2 (certificate 4985, FIPS 140-3). If your environment must run a validated module, confirm with the vendor or the validation record which exact version and certificate apply to your build, because a post-quantum capability in a newer release does not by itself carry a validation. Also note that OpenSSL 4.0.3 changed FIPS behaviour so that a missing fips-indicator no longer counts as approval, which affects how you verify approved operations.

Plan the upgrade as a test rather than a single switch: confirm the version, confirm the vendor build, then check the Groups setting and the default groups list in your environment before any rollout. Treat the move to 3.5 or later as a change to validate, not a rebuild of your hardware.

Which OpenSSL releases carry which post-quantum pieces

This table compares the supported OpenSSL release lines and the FIPS-validated 3.1.2 build on support dates, ML-KEM, ML-DSA and SLH-DSA availability, hybrid groups, FIPS status and sources. Read each row against your own build, since a release line's features do not automatically apply to a vendor's packaged copy. The main takeaway is that hybrid key exchange is on by default from 3.5 onward, while the FIPS-validated 3.1.2 build does not carry the 3.5 post-quantum algorithms.

ItemOpenSSL 3.5 LTSOpenSSL 4.0 and 4.1FIPS-validated 3.1.2
Support end date2030-04-08, final year limited to security patches4.0 until 2027-05-14; 4.1 until 2027-11-23Not stated in the supplied facts; confirm with the FIPS module's validation listing
ML-KEM, ML-DSA and SLH-DSA availableYes, in both default and FIPS providersYes, carried forward from 3.5; 4.1 notes list only performance work for these algorithmsNo; the validated 3.1.2 build predates the 3.5 algorithm additions
Hybrid groups on by defaultYes; X25519MLKEM768 and X25519 are the default key sharesYes; 4.0 added curveSM2MLKEM768 to the hybrid groupsNo; the 3.5 default group changes do not apply to 3.1.2
FIPS statusDocumented as implemented in the FIPS provider; the 3.5.0 FIPS provider itself has not been validatedNot stated for 4.0 or 4.1 in the supplied facts; 4.0.3 changed FIPS indicator behaviorValidated under FIPS 140-3 (certificate 4985)
Source and check dateOpenSSL 3.5 release post, NEWS.md and 3.5 man pages; checked 2026-12-03OpenSSL 4.1.0 announcement, NEWS.md and release policy page; checked 2026-12-03OpenSSL source and FIPS list; README-FIPS.md on the 3.5 branch; checked 2026-12-03
Note on RFC 8422 curvesDeprecated RFC 8422 curves remain available in this line4.0 disabled RFC 8422 TLS curves at compile time by default; re-enable with enable-tls-deprecated-ecNot covered by the supplied facts
Note on 4.2 development groupsNot applicableMLKEM512X25519 and SecP256r1MLKEM512 appear in the development documentation for 4.2 and are not part of the 4.1 releaseNot applicable

What the OpenSSL build itself must provide

Before any post-quantum algorithm can be negotiated, the OpenSSL build sets defaults that decide which connections it will accept. The first is the TLS security level. OpenSSL 3.5 documents a default security level of 2, which requires at least 112 bits of security, 2048-bit RSA, DSA and DH keys and 224-bit ECC keys. The default comes from the compile-time value -DOPENSSL_TLS_SECURITY_LEVEL, so a custom build can set it higher or lower. Level 3 requires 3072-bit RSA and 256-bit ECC. Confirm the value your build uses with the openssl binary and your build log, because a distribution may compile it differently from the upstream default.

The second group of defaults covers cipher lists. For TLS 1.2 and below, the default cipher list is set at compile time and normally corresponds to ALL:!COMPLEMENTOFDEFAULT:!eNULL. For TLS 1.3, the default ciphersuites are TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256 and TLS_AES_128_GCM_SHA256. These are symmetric cipher choices and do not by themselves add public-key algorithms, but a build that changes them changes what a peer can negotiate. In the OpenSSL 4.0 release, the deprecated RFC 8422 elliptic curves are disabled at compile time by default. Restoring them requires building with enable-tls-deprecated-ec, so check that flag before assuming a peer's older curves still work.

The public facts do not list a separate hardware requirement for the post-quantum algorithms, and they do not describe a licence change for them. Treat both as open questions to confirm in your own environment rather than as settled. Also confirm the build flags, the dependencies your distribution links against and the FIPS provider version you rely on, since the facts show that a validated FIPS provider and the 3.5 library can differ in version. Record the exact build configuration with the release you deploy, so a later upgrade can be compared against it.

Which parts of the stack the upgrade touches

A post-quantum upgrade of OpenSSL touches the library version, the configuration file, the certificate keys, the FIPS provider and the applications that call it. Each item below names one place where a change can happen and the fact that supports what to check there.

The OpenSSL library version

Post-quantum algorithms such as ML-KEM, ML-DSA and SLH-DSA first appeared in OpenSSL 3.5, released on 2025-04-08, and 3.5 is the long term stable release supported until 2030-04-08. Older branches do not include these algorithms, so an upgrade begins with confirming which version each server and client runs. Check the installed version against the supported releases on the project's release policy page, because 4.0 and 4.1 are also supported on shorter schedules.

OpenSSL release strategy

The TLS configuration file

In OpenSSL 3.5 configuration files, the Groups directive sets the supported key exchange groups, SignatureAlgorithms sets the signature algorithms for TLS 1.2 and 1.3, and MinProtocol sets the lowest protocol version. The Ciphersuites and CipherString directives set the TLS 1.3 and TLS 1.2 cipher lists. Review these keys in every file that loads OpenSSL, since a hybrid group can be changed or removed here. The SSL_CONF_cmd documentation does not state a default for MinProtocol, so confirm the value your build uses.

SSL_CONF_cmd docs

Certificate key type and generation

The openssl genpkey command in 3.5 generates ML-DSA private keys, with examples for ML-DSA-65 and ML-KEM-768, while the default RSA key size remains 2048 bits. Certificates issued for post-quantum signatures need keys generated with these algorithms, so issuance and renewal workflows must change alongside the server. Confirm with your certificate authority whether it issues ML-DSA certificates before you generate keys for production use.

openssl-genpkey docs

The FIPS provider and fipsmodule.cnf

A FIPS build loads the provider through configuration, which includes a fipsmodule.cnf file generated by openssl fipsinstall and sets default_properties = fips=yes. The 3.5.0 FIPS provider has not been validated, and a validated 3.1.2 provider can be used with 3.5 libraries. If your environment requires FIPS, check the validated versions and regenerate fipsmodule.cnf after any provider change.

OpenSSL README-FIPS

Applications that set groups

Applications that call SSL_CTX_set1_groups_list() set their own key exchange groups in code, which overrides defaults from the library and the configuration file. OpenSSL 3.5 changed the default groups to prefer hybrid groups such as X25519MLKEM768, so an application that sets its own list must be reviewed for hybrid entries. Use the *, ? and - prefixes documented for the function to control predicted key shares and removals, and test each application after the change.

SSL_CTX_set1_curves docs

How the upgrade differs by version line and FIPS need

OpenSSL 3.5 is a long term stable release, released on 2025-04-08 and supported until 2030-04-08, with the final year limited to security patches. It was the first line to add ML-KEM, ML-DSA and SLH-DSA, and it changed the default TLS key exchange so that hybrid post-quantum groups are on without configuration.

  • Default hybrid groups: The default supported groups list includes and prefers hybrid KEM groups, and the default key shares are X25519MLKEM768 and X25519.
  • ClientHello size: The documentation warns that the default X25519MLKEM768 key share enlarges the ClientHello beyond a single TCP segment, and advises prepending ?X25519MLKEM768: without the * prefix to avoid predicting that key share.
  • Changing groups: Set the Groups directive or call SSL_CTX_set1_groups_list() to change or remove hybrid groups, and use openssl list -tls1_3 -tls-groups to see the names available in your build.
  • FIPS status: The README-FIPS file states that the OpenSSL 3.5.0 FIPS provider has not been validated, so a 3.5.0 FIPS build should not be assumed to be validated.

Confirm the exact patch level you run, and check the group settings in your configuration file against your interoperability tests before changing defaults.

Is hybrid key exchange an option, and is it already on?

On OpenSSL 3.5, hybrid post-quantum key exchange is already on by default, without any configuration change. The 3.5 release changed the default TLS supported groups list so that the hybrid groups are included and preferred, and it set the default key shares to X25519MLKEM768 and X25519. The hybrid groups in 3.5 are X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024, and the project documents no standalone ML-KEM group name for TLS. Confirm this on your own builds with openssl list -tls1_3 -tls-groups and by inspecting the negotiated group on a test connection. Note that a build or distribution package may set its own Groups value, so the default you observe may differ from the upstream default.

The 3.5 documentation warns that the default X25519MLKEM768 key share makes the ClientHello larger than a single TCP segment. That matters for middleboxes, load balancers and older peers that mishandle fragmented or oversized handshake messages, so test connections through every intermediate device before relying on the default. To avoid sending that key share by default, you can prefix the group with ? in Groups, which marks it as optional rather than predicted, so the client does not send it in the first flight unless the peer asks for it. Alternatively, Groups or SSL_CTX_set1_groups_list() can remove the hybrid groups with the - prefix or replace the list entirely. Decide which of these you need after testing, and record the choice with the settings file that carries it.

The development branch documents two further groups, MLKEM512X25519 and SecP256r1MLKEM512, which the development documentation attributes to OpenSSL 4.2. These are not part of the 4.1 release notes, which list only ML-KEM and ML-DSA performance work as post-quantum changes. Do not plan around these group names for production until a released version lists them. For the releases you actually run, check the release notes and the openssl list -tls-groups output on that version, and treat any group that appears only in development documentation as unavailable.

What to do next, in order, with the check that closes each step

This sequence turns a list of OpenSSL builds into a recorded, tested decision about post-quantum key exchange and signatures. Each step closes with an output you can capture, so the inventory, target and test results can be handed to a security or vendor-risk reviewer.

  1. Inventory every OpenSSL build in use

    Platform or server engineers list each host, container image and appliance that runs OpenSSL, and record the version string from openssl version -a along with whether the FIPS provider is loaded. Packaged distribution builds, vendor appliances and statically linked binaries can differ from the upstream release, so check each one directly rather than assuming. The step is closed when every build has a row in the inventory with its version, its provider status and its owner.

  2. Decide the target OpenSSL line

    Security leads and platform owners choose the release line each build should move to, using the support dates on the OpenSSL release policy page. OpenSSL 3.5 is the long term stable release supported until 2030-04-08, and 4.0 and 4.1 are supported until 2027-05-14 and 2027-11-23 respectively. If FIPS validation is required, choose a validated FIPS provider version, since the 3.5.0 FIPS provider is documented as not validated. The step is closed when the target version and the reason for it are written down and approved.

  3. Confirm build flags and the security level

    Build engineers check the compile-time options on the target build, including the TLS security level default and any changes to the deprecated elliptic curve settings. OpenSSL 3.5 defaults to TLS security level 2, and level 3 requires 3072-bit RSA and 256-bit ECC keys, so existing certificates may need review. Confirm the result with openssl version -a and the security level in the configuration. The step is closed when the flags and the effective security level are recorded for each build.

  4. Set or review Groups and SignatureAlgorithms

    Engineers review the Groups and SignatureAlgorithms directives in each configuration file, since these control which key exchange groups and signature algorithms the server offers. In OpenSSL 3.5 the default groups already prefer the hybrid X25519MLKEM768 group, so an explicit list should be a deliberate choice. The documentation advises prefixing the group with ? to avoid predicting the large key share. The step is closed when each configuration file contains a reviewed value and the change is captured in version control.

  5. Test handshakes with s_client

    Test engineers run openssl list -tls1_3 -tls-groups on each build to confirm the groups it offers, then use openssl s_client against a test endpoint to check that the expected group is negotiated. Record the negotiated group and cipher for each test, and repeat the test against older clients that the service must still support. The step is closed when every test case has a recorded result showing the expected or unexpected handshake outcome.

  6. Record the results and sign off

    The engineer responsible for each build writes up the inventory, target line, flags, configuration review and handshake results, then the security lead reviews and signs them off. The record should state which OpenSSL version and component each finding applies to, and when each test was run. Anything that cannot be upgraded or tested is listed with its owner and the next review date. The step is closed when a signed record exists for every build in the inventory.

What the facts do not settle and what to ask the project or supplier

The OpenSSL documentation answers many questions about post-quantum builds, but several points remain unsettled in the sources we reviewed. Each card names one open point and who can answer it, so the planning team can close the gaps before committing to an upgrade.

Validated FIPS build for 3.5

The README-FIPS.md in the 3.5 branch states that the OpenSSL 3.5.0 FIPS provider has not been validated. The project's source page lists validated versions 3.5.9 (NIST certificate 5586, FIPS 140-3) and 3.1.2 (certificate 4985), and says a validated provider such as 3.1.2 can be used with OpenSSL 3.5 libraries. Ask your supplier which validated build they ship, and whether a 3.5 release on your platform carries a validated provider or depends on a separate one.

OpenSSL source and FIPS list

ML-DSA certificate support in TLS

The OpenSSL 3.5 documentation for SignatureAlgorithms does not mention ML-DSA names or a default signature list. A closed project issue shows an ML-DSA-44 signature scheme appearing in s_server and s_client output on a 3.5.0 alpha, but that is not a release statement. Ask the project or your supplier whether ML-DSA certificates work end to end in TLS in the release you run, and which signature names they negotiate.

SignatureAlgorithms docs

Hardware requirements not listed

The sources we reviewed list no hardware requirement for the post-quantum algorithms, including ML-KEM, ML-DSA and SLH-DSA. The 4.1.0 announcement mentions optimizations for specific processors, which suggests performance differs by platform but does not state a minimum. Ask your build or platform supplier which CPUs and accelerators they test on, and whether any setting depends on them.

4.1.0 announcement

Group names for 4.2 not yet released

The development documentation says OpenSSL 4.2 adds the groups MLKEM512X25519 and SecP256r1MLKEM512. These are not part of the released 4.1 notes, so they cannot be relied on for planning today. Ask the project or your supplier for a release date and whether these names will ship in the same form, before you write any configuration that depends on them.

Development group docs

4.1 post-quantum changes are performance work

The 4.1.0 announcement lists only ML-KEM and ML-DSA performance changes as its post-quantum items: NTT optimizations on ppc64le and ML-DSA optimizations on x86_64. It does not list new post-quantum algorithms or groups in 4.1. Ask the project which post-quantum features they plan for the next release, and whether any affect your planned upgrade path.

4.1.0 announcement

What can break or silently stay classical

The first thing to check is the size of the ClientHello. OpenSSL 3.5 enables the hybrid key share X25519MLKEM768 by default, and the project's own documentation warns that this key share enlarges the ClientHello beyond a single TCP segment. Some middleboxes, load balancers and older peers handle a split ClientHello poorly, so connections may fail rather than degrade cleanly. The documentation does not describe a fallback for these cases, so do not assume one exists. Test from the client populations you actually serve, including the paths that cross inspection devices. If a key share is causing trouble, the Groups directive can prepend ?X25519MLKEM768: without the * prefix so the key share is not predicted, or the hybrid groups can be removed with the - prefix. Confirm the exact behaviour of each setting against the version you run.

Some settings keep classical algorithms in place even after a post-quantum group is added. The default TLS 1.2 and below cipher list is set at compile time and normally corresponds to ALL:!COMPLEMENTOFDEFAULT:!eNULL, so it is not changed by enabling post-quantum groups. The Groups list in configuration files is ordered, so a classical group listed first will still be preferred when a peer offers both. Also check that MinProtocol is set explicitly, because the 3.5 documentation does not state a default for it. For certificates, the security level sets minimum key sizes: at the default level 2, RSA and DH keys must be at least 2048 bits and EC keys at least 224 bits, and level 3 raises these to 3072-bit RSA and 256-bit ECC. Key generation defaults to 2048-bit RSA through genpkey, so a stated key type is not the same as a post-quantum key.

Version support is a second source of silent gaps. OpenSSL 3.5 is a long term stable release supported until 2030-04-08, and OpenSSL 4.0 is supported until 2027-05-14. Hybrid groups, ML-KEM and ML-DSA are not in releases before 3.5, so a 3.0 or 3.x estate cannot use them without an upgrade. Confirm the exact version running on each host, including versions bundled with appliances or containers, and check each one against the release policy. For FIPS deployments, note that the 3.5.0 FIPS provider has not been validated, and that a validated provider such as 3.1.2 can be used with 3.5 libraries. Since 4.0.3, an algorithm advertised with fips=yes counts as approved only if its fips-indicator returns 1, so confirm that your FIPS configuration reports approval for the operations you rely on.

Decision path from the current OpenSSL build to a post-quantum configuration

The path starts by reading the installed OpenSSL version. Anything below 3.5 needs a version move before post-quantum algorithms can be used. On 3.5 or later, the next check is whether a FIPS requirement applies, since the FIPS provider in 3.5 is not validated and a validated provider such as 3.1.2 may be needed instead. Then confirm the Groups and SignatureAlgorithms settings, because hybrid key exchange is on by default but can be changed. The last step is to test the handshake with the real clients and peers and record the result.

Steps from the installed OpenSSL version to a tested post-quantum configuration.

Questions engineers and vendor-risk reviewers ask about OpenSSL upgrades

Is OpenSSL quantum safe?

No product can be declared quantum safe on the strength of its feature list, and this page does not make that claim for OpenSSL. What the supplied facts support is narrower: OpenSSL 3.5, released on 2025-04-08, added ML-KEM, ML-DSA and SLH-DSA, and it enables hybrid key exchange groups such as X25519MLKEM768 by default. Those algorithms are documented as implemented in both the default and FIPS providers, conforming to FIPS 203, FIPS 204 and FIPS 205. Whether a given deployment is acceptable for your requirements depends on the release you run, how it is built, and which groups and signature settings are in effect. Confirm those details in your own environment before recording an answer.

Which OpenSSL version should I run for post-quantum support?

The facts support OpenSSL 3.5 as the first release with the post-quantum algorithms. It is a long term stable release, supported until 2030-04-08, with the final year limited to security patches. OpenSSL 4.0 and 4.1 are also supported, 4.0 until 2027-05-14 and 4.1 until 2027-11-23, but they are shorter-lived. Check the release policy page for current support dates before you decide, since the project publishes a new release every six months. If you need FIPS validation, note that the facts say the 3.5.0 FIPS provider was not validated, and that a validated provider such as 3.1.2 can be used with 3.5 libraries. Confirm which FIPS module and certificate your assessor accepts before you choose a version.

Does upgrading OpenSSL cost extra?

The supplied facts give no price for an OpenSSL upgrade, so ask for one that reflects your estate. Costs usually fall into a few groups: staff time to rebuild and test, changes to builds and packages, validation of any FIPS module you rely on, and retesting of clients and peers. Some costs are one-time, such as the initial inventory and test rollout, while others recur with each new release every six months. Cost rises with the number of systems linking OpenSSL, the number of custom builds, and the strictness of your compliance evidence. When you request a quote, ask who is responsible for each item and whether it includes retesting after each release cycle.

What breaks when OpenSSL moves to a post-quantum build?

The main changes come from defaults and key sizes rather than from new algorithms alone. Hybrid key exchange is on by default in 3.5, and its X25519MLKEM768 key share enlarges the ClientHello beyond a single TCP segment, which can trouble older clients and middleboxes. The 3.5 documentation advises prepending ?X25519MLKEM768: without the * prefix to avoid predicting that key share. Other changes to check include:

  • The default TLS security level of 2 sets minimum key sizes of 2048-bit RSA and 224-bit ECC.
  • OpenSSL 4.0 removed SSLv3 and engine support, and disabled the deprecated RFC 8422 TLS elliptic curves at compile time by default.
  • Configuration files that set Groups, SignatureAlgorithms or MinProtocol may need review.

Test against the clients, peers and load balancers you actually run before rollout.

What should I ask the OpenSSL project or my supplier before upgrading?

Ask a small set of questions that the release documents can answer directly. First, which release and support end date apply to the version you plan to run. Second, whether the FIPS module you need is validated for that exact version, and which certificate number applies. Third, which default groups and signature algorithms the build enables, and how to disable or restrict hybrid groups. Fourth, whether the project plans to change defaults in the next release cycle. The release strategy and NEWS files are the first places to check. Record each answer with its version, the date you checked it, and the source you used, so the evidence stays current as releases change.

Can my team do the OpenSSL upgrade ourselves, or do we need outside help?

Many teams can run the upgrade in-house if they already build and operate OpenSSL, and the configuration settings are documented in the project's own man pages. Outside help is more useful when the estate is large, when you must meet FIPS or other audit evidence requirements, or when clients and peers are hard to test. Ask any provider to state the scope in writing, including who runs the retests after each new release. DeployOpen plans, implements, tests and documents self-hosted open-source platforms inside the client's own infrastructure, and most engagements are fixed-scope, with the scope agreed in writing before work starts. Check the source of any claim a provider makes about OpenSSL against the project's documentation.

How DeployOpen helps plan and carry out an OpenSSL upgrade

DeployOpen plans and carries out OpenSSL upgrades inside the client's own infrastructure, starting from the build and dependency questions that decide what a post-quantum upgrade needs. The work is written down as a fixed scope, tested in the client's environment and handed over with the documentation the client's engineers and assessors need.

How we scope

  • We record which OpenSSL release and build options each system runs, including the FIPS provider setup where it applies.
  • The written scope lists the systems, builds, dependencies and surrounding components that are in and out of the upgrade.
  • Scope, deliverables and timelines are agreed in writing before any work starts, and most engagements are fixed-scope.

How we build

  • We build the target OpenSSL release in a test environment, confirming the hybrid key exchange defaults and the Groups setting behave as documented.
  • We check FIPS-relevant configuration, including whether the validated provider version matches the library version in use.
  • We test compatibility with the client's clients, peers and middleboxes before any change reaches production.

How we hand over

  • We document the final build options, configuration files and each dependency change so the client's engineers can rebuild the setup.
  • The handover includes test results and a record of which settings were changed from the release defaults, and why.
  • Documentation is prepared so the client's compliance and security teams can review the setup and the evidence behind it.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, which cover later OpenSSL releases.
  • Confirm with the vendor and your own environment which OpenSSL release you will move to, since support windows differ by release.
  • Retesting after each upgrade keeps the documented build and configuration matched to what is running.

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.