How to inventory cryptography in Linux distributions

Start by recording the TLS, SSH, certificate and dependency settings on each host, then map them to the library versions and crypto policy that decide whether key exchange is post-quantum.

On this page

How do you inventory cryptography in a Linux distribution for post-quantum work?

A security engineer inventorying a Linux host for post-quantum work needs to record every algorithm, key and certificate in use, and to record the version of each component that uses them, because support differs by release. The inventory covers five layers: OpenSSL, OpenSSH, the system crypto policy, certificates and the dependencies that bring in their own cryptography, such as GnuTLS, NSS, libssh, Go and container tooling. Red Hat's RHEL post-quantum material gives three reference points for this work: the RHEL 10.1 DEFAULT crypto policy, which prefers and enforces hybrid key exchange for TLS (x25519 plus ML-KEM-768) and SSH (ML-KEM plus x25519), OpenSSL 3.5.0, released 8 April 2025, which added ML-KEM, ML-DSA and SLH-DSA, and OpenSSH 10.0, released 9 April 2025, which uses mlkem768x25519-sha256 by default for key agreement.

This inventory is needed by system administrators who configure hosts, security leads who own the risk register, and vendor-risk reviewers who must check what a distribution actually ships. Start by recording the installed OpenSSL, OpenSSH and crypto policy versions on each host, then the key exchange and TLS groups each one negotiates. The ssh -Q kex output and the OpenSSL default TLS groups show what is offered. Log all TLS group names with their IANA identifiers, since Red Hat lists the same hybrid group as group ID 4587 across OpenSSL, GnuTLS, NSS and Go, which helps match configuration and logs across libraries. Note that Go's crypto/x509 lags the C libraries, and that the Go runtime on RHEL 10.0 offered only an early draft group that will not be supported in future releases.

Two points need confirming with the vendor rather than assuming from this page. The sources listed on this page do not say how any distribution inventories its own packages, so ask each vendor for its package manifest method and the version of each crypto library it ships. The sources also do not describe the full dependency tree for any distribution, so run a package query on each host and record the results. For SSH sessions that remain classical only, OpenSSH 10.1 and later clients warn on non-post-quantum key agreement by default through WarnWeakCrypto, and OpenSSH 10.6 adds the same warning on sshd. Those log entries can help locate the hosts and sessions that need attention.

Which component and version each post-quantum fact applies to

This table lists each post-quantum fact for Linux distributions against the component, version and source that states it, with the date of that source. Read each row as a limit: a fact applies only to the named version, edition or default setting, and a later release or a changed configuration may differ. Confirm the setting on your own systems before recording it in an inventory.

Component and versionPost-quantum factSource and date
OpenSSL 3.5.0Adds ML-KEM, ML-DSA and SLH-DSA; default TLS key shares are X25519MLKEM768 and X25519OpenSSL 3.5 release notes, released 8 April 2025
OpenSSH 10.0Uses mlkem768x25519-sha256 as the default key agreement methodOpenSSH release notes, released 9 April 2025
OpenSSH 10.1Client logs a warning when a connection negotiates a non-post-quantum key agreement; controlled by WarnWeakCrypto in ssh_config, on by defaultOpenSSH release notes, released 6 October 2025
OpenSSH 10.6sshd adds WarnWeakCrypto, on by default, and logs when a client uses a non-post-quantum key agreementOpenSSH release notes, released 6 October 2026
RHEL 10.1 DEFAULT crypto policyPrefers and enforces hybrid key exchange for TLS (x25519 plus ML-KEM-768) and SSH (ML-KEM plus x25519)Red Hat PQC in RHEL, undated on the page
RHEL 10.0 OpenSSL providerUsed oqsprovider-0.8.0-5.el10; private keys stored in no standard format; many hybrid and composite algorithms will not be supported in future releasesRed Hat RHEL 10 PQC interoperability, undated on the page
RHEL 10.0 Go runtimeOffers only x25519Kyber768Draft00 (TLS group 25497), an early draft that will not be supported in the futureRed Hat RHEL 10 PQC interoperability, undated on the page
Ubuntu 26.04 LTSShips OpenSSH 10.2 with mlkem768x25519-sha256 listed as available by defaultCanonical Ubuntu 26.04 security, dated 10 April 2026

What to record for each host before you map anything

Before you map cryptography on a Linux host, record the version and configuration of each component that makes or accepts a key exchange, signature or certificate. Start with the OpenSSL version and provider. Red Hat's RHEL post-quantum page names OpenSSL 3.5 or later as the relevant baseline, and OpenSSL 3.5.0, released 8 April 2025, added ML-KEM, ML-DSA and SLH-DSA support. Record the active providers too, because RHEL 10.0 used oqsprovider-0.8.0-5.el10, a third-party provider whose private keys are not stored in a standard format. Next, record the OpenSSH version and the key exchange your sessions actually negotiate, not only what the server offers. OpenSSH 10.0 made mlkem768x25519-sha256 the default. Also record the system crypto policy name (for example, DEFAULT), since on RHEL 10.1 the DEFAULT policy prefers and enforces hybrid key exchange for TLS and SSH. Confirm these values on each host with your own commands and configuration files, because a package version alone does not show which policy is in force.

Then record the certificate key types and issuers in use, the Go runtime version, and the libraries that sit alongside them: GnuTLS, NSS, libssh (0.12.0 is the version Red Hat names for custom libssh servers), libreswan for IPsec, Kerberos, Sequoia-PGP and Podman with container-tools. Red Hat's interoperability page says the RHEL 10.0 Go runtime offered only x25519Kyber768Draft00, an early draft it says will not be supported in the future, so the Go version tells you which hybrid groups you can expect. For certificates, note whether each issuer is public or private. Red Hat's RHEL page says public CAs do not yet issue post-quantum certificates, while private CAs can use ML-DSA. Record IANA group ID 4587 with the hybrid TLS group name. It is the same group across OpenSSL, GnuTLS, NSS and Go, so you can match a configuration line or a log entry in one library against the same group in another. Red Hat treats AES-256 and SHA-256, SHA-384 and SHA-512 as already quantum-resistant for its purposes. That is Red Hat's position, not a DeployOpen finding, and you should confirm whether your own risk assessment accepts it.

Which Linux components touch public-key cryptography

A Linux inventory for post-quantum work starts with the libraries and services that negotiate keys, present certificates and apply system-wide defaults. The cards below cover the components named in Red Hat's RHEL post-quantum material and the OpenSSH and Ubuntu release notes, with what each source supports and what you should confirm in your own environment.

OpenSSL

OpenSSL handles TLS key shares and certificate handling for many services on these distributions. OpenSSL 3.5.0, released 8 April 2025, added ML-KEM, ML-DSA and SLH-DSA support, and its default TLS key shares are X25519MLKEM768 and X25519. Confirm the exact OpenSSL version on each host, whether your applications load it directly or through a bundled copy, and which TLS groups your services actually negotiate. Hybrid groups appear under different names in OpenSSL, GnuTLS, NSS and Go, all using IANA group ID 4587, so match on the group ID when reviewing logs.

OpenSSL 3.5 notes

OpenSSH

OpenSSH sets the key exchange and host keys for remote administration on these systems. OpenSSH 10.0 uses mlkem768x25519-sha256 by default for key agreement, and OpenSSH 10.1 added a client-side WarnWeakCrypto warning that defaults to on. OpenSSH 10.6 adds the same option to sshd, so the server logs clients that negotiate a non-post-quantum key agreement. Check the OpenSSH version on each host, then use these warnings to find classical-only sessions. Confirm which host key types your servers present, because the sources listed here do not cover post-quantum host keys.

OpenSSH release notes

System crypto policy

On RHEL, the system-wide crypto policy sets TLS and SSH defaults for many components at once, so a single change can alter behavior across the host. Red Hat says that in RHEL 10.1 the DEFAULT policy prefers and enforces hybrid key exchange for TLS (x25519 plus ML-KEM-768) and for SSH (ML-KEM plus x25519). Record which policy each host runs, whether any hosts override it, and whether applications pin their own TLS or SSH settings that bypass the policy. Because policy changes can break older clients, test the effect on your traffic before rollout.

Red Hat PQC in RHEL

Go runtime

The Go runtime carries its own TLS and certificate code, separate from the C libraries. Red Hat says Go's crypto/x509 lags the C libraries and that full ML-DSA signing integration is not expected until the Go 1.27 cycles. Find the Go-built binaries on each host, including container images and vendored tools, since they will not pick up OpenSSL changes. Confirm the Go version each binary was built with and whether it negotiates any post-quantum TLS group. The RHEL 10.0 Go runtime offered only an early draft group that Red Hat says will not be supported in future releases.

Red Hat PQC in RHEL

Certificate authorities

Certificate issuance is a separate dependency from key exchange. Red Hat says public certificate authorities do not yet issue post-quantum certificates, while private CAs can use ML-DSA. Inventory every CA that issues certificates for your hosts, separating public and private CAs, and record the signing algorithm each one uses. Confirm with each public CA whether and when it plans to issue post-quantum certificates, because the sources listed here do not give a date. Also note that RHEL 10.0 used oqsprovider-0.8.0-5.el10 for OpenSSL, with private keys in no standard format.

RHEL 10 PQC interoperability

IPsec, Kerberos and Sequoia-PGP

Red Hat lists IPsec with libreswan, Kerberos and Sequoia-PGP among the components relevant to post-quantum work, but the sources listed on this page do not describe their post-quantum status. Identify which hosts run libreswan tunnels, which services authenticate with Kerberos, and where Sequoia-PGP signs or verifies data. For each, record the package version and the vendor's published plan, and confirm them directly with Red Hat or the upstream project. Treat these as open inventory items until the vendor answers.

Red Hat PQC in RHEL

How the answer changes by distribution and version line

RHEL 10.0 ships post-quantum support through an external provider rather than a built-in default. Red Hat's interoperability page says RHEL 10.0 used oqsprovider-0.8.0-5.el10 for OpenSSL, and that private keys created with it are in no standard format. Many of its hybrid and composite algorithms will not be supported in future RHEL releases, so inventory results from this line should be recorded as provisional.

  • OpenSSL provider: Check for oqsprovider-0.8.0-5.el10 in the package list to confirm the provider is installed.
  • Private key format: Keys generated under this provider are in no standard format. Record them as a separate category in the CBOM and do not assume they will parse with other tools.
  • Go runtime: The RHEL 10.0 Go runtime offered only x25519Kyber768Draft00 (TLS group 25497), an early draft that will not be supported in the future.
  • Future support: Hybrid and composite algorithms from this release are not expected to carry forward, so plan a re-issuance path for any key or certificate that depends on them.

Confirm each of these on the host, with the package query and a test handshake, because the sources do not describe custom builds or third-party repositories.

Where to look on a Linux host during the inventory

The walk starts at the host itself, where package versions of OpenSSL, OpenSSH and the Go runtime show which cryptographic libraries are installed. From there, the system crypto policy determines which algorithms the TLS and SSH libraries offer by default, and the TLS and SSH sessions show what is actually negotiated. Certificates and key stores come next, followed by the dependency libraries such as GnuTLS, NSS, libssh and libreswan. The last step records each finding as an entry in the CBOM. Check the negotiated groups and the WarnWeakCrypto log messages, because the configured policy and the live session can differ.

Inventory path from the host through library versions and sessions to a recorded CBOM entry.

Steps to build the inventory and record it

This sequence turns the Linux distribution estate into a dated, versioned record of where cryptography is used and which of it depends on public keys. Each step produces an entry that can be checked and then carried into the CBOM with its version and date.

  1. List hosts and distribution versions

    Collect every host that runs a Linux distribution in scope, including the release and minor version reported by the OS release file on each system. Group hosts by distribution and release so later steps can be compared across the same version. This step is done when every in-scope host appears once in the list, with its distribution name, release and kernel version recorded, and the count matches your asset inventory.

  2. Record package versions for OpenSSL, OpenSSH and Go

    On each host, record the installed package version of OpenSSL, OpenSSH and the Go runtime, along with any other libraries named in the vendor's post-quantum guidance. Version numbers matter because OpenSSL 3.5.0 added ML-KEM, ML-DSA and SLH-DSA support, and OpenSSH 10.0 made mlkem768x25519-sha256 the default key agreement. Red Hat's RHEL 10 page notes that Go's crypto/x509 lags the C libraries, so record the Go version separately. This step is done when each host has a version entry for each package and the entries have been checked against the vendor's release notes.

  3. Record the system crypto policy

    Read the active system-wide crypto policy on each host and write down its name and any module or subpolicy in effect. On RHEL 10.1, the DEFAULT policy prefers and enforces hybrid key exchange for TLS (x25519 plus ML-KEM-768) and for SSH (ML-KEM plus x25519), so the policy name alone does not show what is negotiated. Record whether any host has an overriding policy file. This step is done when every host has its policy name and override status written in the inventory.

  4. Sample live TLS and SSH sessions

    Open representative TLS and SSH sessions from a test client to each service on the hosts, and read the negotiated key agreement or key exchange algorithm from the session output. For OpenSSH 10.1 and later clients, a warning appears when the connection uses a key agreement that is not post-quantum, and OpenSSH 10.6 sshd logs the same condition on the server side when WarnWeakCrypto is enabled. Use these warnings to locate classical-only sessions, and keep the logs with the host record. This step is done when each service has at least one sampled session with its negotiated algorithm and the date recorded.

  5. Inventory certificates and their key types

    List every certificate in use on each host, including those stored under system trust and service directories, and record the subject, issuer, key type and expiry date. Red Hat's RHEL page states that public certificate authorities do not yet issue post-quantum certificates, while private CAs can use ML-DSA, so record which issuer signed each certificate. Mark each entry as classical or post-quantum based on its key type. This step is done when every certificate found on the hosts has a row with its key type, issuer and expiry date.

  6. Record dependency libraries

    Identify the libraries that depend on the cryptographic packages above, including GnuTLS, NSS, libssh, libreswan, Kerberos, Sequoia-PGP and the container tools that Red Hat lists for post-quantum work. Record the version of each library and which service or application links to it. Red Hat's interoperability page notes that hybrid TLS groups appear under different names in OpenSSL, GnuTLS, NSS and Go but share IANA group ID 4587, so match library logs by that ID. This step is done when each dependency has a version entry linked to the services that use it.

  7. Enter each item into the CBOM with version and date

    Transfer each host, package, policy, session, certificate and dependency entry into the cryptography bill of materials, giving every item its version and the date it was observed. Mark items that are private-format or part of a non-standard or draft implementation, such as the oqsprovider 0.8.0 build in RHEL 10.0, as needing follow-up. Check that every item links to its host and that dates fall within the same collection period. This step is done when the CBOM contains an entry for each recorded item with its version and observation date, and a reviewer has signed off that the entries match the host records.

What the sources do not say and what to ask the vendor

The sources listed on this page leave several points open that matter for a Linux package inventory. Each card below names one gap and the question to put to the vendor so the answer can be recorded in your CBOM input.

How inventory tools report package cryptography

None of the sources on this page documents how an inventory or scanning tool reports cryptography found in Linux packages. You can see that OpenSSL, OpenSSH and Go appear in the RHEL and Ubuntu component lists, but not how a scanner attributes an algorithm to a specific installed package or library version. Ask your scanner vendor which package databases it reads, how it maps a detected algorithm to the package that ships it, and whether its output uses CBOM fields. Check the answer against one host where you know the installed OpenSSL and OpenSSH versions.

Red Hat PQC in RHEL

Default algorithm sets beyond RHEL and Ubuntu

The sources give the full default set only for RHEL 10.1 and Ubuntu 26.04 LTS. For Debian, SUSE Linux Enterprise, Rocky Linux, AlmaLinux, Amazon Linux and Oracle Linux, the sources do not say which key exchange, signature or certificate algorithms are enabled by default. Ask each distribution vendor for the default algorithm list in its current release, including the TLS, SSH and IPsec defaults, and the release and package version each list applies to.

Canonical Ubuntu 26.04 security

Go ML-DSA signing timeline

Red Hat states that full ML-DSA signing integration in Go's crypto/x509 is not expected until the Go 1.27 cycles, and that Go lags the C libraries. The sources do not say when full ML-DSA signing will land after those cycles. Ask Red Hat and any distribution that packages Go for the release in which ML-DSA signing will appear in the Go runtime they ship, and whether it will be backported to the release you run. Record the answer alongside the Go version in your inventory.

Red Hat PQC in RHEL

Policy changes after RHEL 10.1

The sources describe the DEFAULT crypto policy in RHEL 10.1, where hybrid key exchange is preferred and enforced for TLS and SSH. They do not say how the policy changes in RHEL 10.x releases after 10.1. Ask Red Hat whether the DEFAULT policy, its hybrid groups or the set of algorithms it enforces will change in later 10.x minor releases, and which release notes will record any change. Re-run your inventory after each minor release that you adopt.

Red Hat RHEL 10 PQC interoperability

What goes wrong during inventory and mapping

The most common inventory failure is a setting that silently falls back to a classical key exchange. A server can list a hybrid group such as X25519MLKEM768 in its configuration and still negotiate plain X25519 when the client does not offer the hybrid option. Because the handshake succeeds, nothing looks broken, so the record reads as post-quantum when the session was not. For OpenSSL 3.5 and later, the default TLS key shares are X25519MLKEM768 and X25519, so confirm the negotiated group in captured handshakes, not only the configured list. The same applies to OpenSSH 10.0 and later, where mlkem768x25519-sha256 is the default key agreement method, but a peer that lacks it will fall back. Record what was negotiated per connection, not what the software supports.

Group names are another source of error. Red Hat's interoperability page lists the same hybrid TLS group under different names in OpenSSL, GnuTLS, NSS and Go, all using IANA group ID 4587. An inventory that matches on names will miss sessions that a library reports under a different label, and two sessions that look different may be the same algorithm. Match on the numeric group ID wherever logs allow it. Be aware of the draft group that RHEL 10.0 shipped in its Go runtime, x25519Kyber768Draft00 (TLS group 25497). Red Hat's interoperability page says this early draft will not be supported in future releases, so any system that depends on it needs to be listed as a migration item, not as a working post-quantum configuration. Confirm group IDs against the library version actually installed.

Two further cases need checks of their own. Private keys generated by oqsprovider-0.8.0-5.el10, the provider used with RHEL 10.0, are stored in no standard format, so standard key parsers and backup tools may not read them. List these keys separately and confirm with Red Hat how they can be read and migrated. Finally, classical-only SSH sessions can go unnoticed when the client predates OpenSSH 10.1, because only 10.1 and later clients warn when a connection negotiates a non-post-quantum key agreement algorithm, and sshd logs the same case only from 10.6 onward under the default WarnWeakCrypto setting. Do not treat the absence of warnings as evidence. Inventory the client versions that connect, and confirm the OpenSSH version on each host before relying on log output.

Common questions about inventorying Linux cryptography

Is Linux quantum safe?

No Linux distribution can be called quantum safe as a whole, and no source here supports that claim. What the sources support is narrower: the distributions covered here ship post-quantum algorithms in specific components, and some of those are on by default in specific versions. Red Hat says AES-256 and SHA-256, SHA-384 and SHA-512 are already quantum-resistant for its purposes, but public CAs do not yet issue post-quantum certificates, and some hybrid algorithms in RHEL 10.0 will not carry forward. Treat the answer as a per-component, per-version question. Record what each component supports and which algorithms it actually negotiates in your environment, and confirm any compliance question with the vendor and your assessor.

Which OpenSSL and OpenSSH versions enable hybrid key exchange by default?

OpenSSL 3.5.0, released 8 April 2025, added ML-KEM, ML-DSA and SLH-DSA support, and its default TLS key shares are X25519MLKEM768 and X25519. OpenSSH 10.0, released 9 April 2025, uses mlkem768x25519-sha256 by default for key agreement. Distributions package these libraries differently, so the version that matters is the one your distribution ships. Canonical states that Ubuntu 26.04 LTS ships OpenSSH 10.2 with that hybrid method available by default. Red Hat states that in RHEL 10.1 the DEFAULT crypto policy prefers and enforces hybrid key exchange for TLS and SSH. Confirm the packaged version and the effective policy on each host, since a package version alone does not show what is negotiated.

Does a post-quantum cryptography inventory cost extra?

The inventory itself is mostly labor, and the cost depends on how many hosts, packages and services you run and how much of the estate is mapped already. The main drivers are the number of distributions and versions in use, the number of services that terminate TLS or SSH, whether private keys and certificates are tracked in a central system, and how much custom or vendored cryptography sits outside the package manager. Tooling may add a license cost if you buy a scanner or certificate discovery product. Ask any provider for the scope of hosts and components covered, the method used, the output format for your CBOM, and whether retesting or follow-up checks are included. No price figure for this work is supplied here.

What breaks when default crypto policies change?

Peers that only offer classical key exchange can fail or fall back when a default changes, and the failure shows up in the logs of the side that made the change. The sources flag several specific risks. Red Hat's RHEL 10.0 Go runtime offered only x25519Kyber768Draft00 (TLS group 25497), an early draft its documentation says will not be supported, so code that pins it will break. Red Hat also says Go's crypto/x509 lags the C libraries, and that full ML-DSA signing is not expected until the Go 1.27 cycles. Hybrid group names differ across libraries even though OpenSSL, GnuTLS, NSS and Go all use IANA group ID 4587, so match configuration and logs by ID rather than by name. Test each change against the peers and clients your services use before you roll it out.

What should I ask the Linux vendor before starting the inventory?

Ask for a written statement of the post-quantum algorithms each shipped component supports, the exact package versions that carry them, and which of those are enabled by default in the crypto policy. Ask whether any hybrid or composite algorithm in your current release is scheduled for removal or will not carry forward to later releases, since Red Hat says many of its RHEL 10.0 hybrid and composite algorithms will not be supported in future releases. Ask how private keys are stored for any post-quantum implementation, because Red Hat notes RHEL 10.0 used oqsprovider private keys in no standard format. Ask when public CAs will issue post-quantum certificates, and what the vendor has published about timelines. Get the answers in writing and date them.

Can my team run the Linux cryptography inventory alone or do we need outside help?

Your team can run the inventory alone if it has access to the hosts, can query package versions and crypto policy settings, and can read TLS and SSH configuration on each service. Most of the work is collection and recording: list the distributions and package versions, record the effective crypto policy, find services that terminate TLS or SSH, and note which algorithms each one negotiates. The OpenSSH 10.1 and 10.6 warnings can help find classical-only sessions in logs. Outside help makes sense when the estate is large, when custom or vendored cryptography is common, or when you need an independent view for an assessment. Whoever runs it, have the owner of each service review the results, since the people who run a service know its peers and dependencies best.

How DeployOpen works on this

DeployOpen approaches a Linux cryptography inventory as a scoped, written engagement that records where each distribution's TLS libraries, SSH servers and crypto policy settings use public-key algorithms. The output is a dated record that feeds a CBOM, so your team can see what each host actually negotiates today.

How we scope

  • Agree in writing which distributions, hosts and images the inventory covers before any work starts.
  • List the components to examine, such as OpenSSL, OpenSSH, GnuTLS, NSS, Go runtime and libreswan, with their versions.
  • Confirm the output format and the CBOM fields your team needs, and state what is out of scope.

How we build

  • Collect library versions, crypto policy settings and SSH key exchange configuration from each in-scope host.
  • Check which hybrid groups each library negotiates, using the TLS group IDs and algorithm names published by the vendor.
  • Flag classical-only sessions and certificates, and separate private CA chains from public CA chains in the record.

How we hand over

  • Deliver a dated inventory that lists each component, algorithm, key and certificate by host and distribution release.
  • Document the commands, log sources and configuration files used, so your team can repeat the collection later.
  • Walk your engineers through the findings and note open questions to confirm with each distribution vendor.

How we support

  • Ongoing support and periodic re-inventory are available as a retainer, scoped in writing.
  • Re-run the collection after OS upgrades, library updates or changes to crypto policy settings.
  • Review vendor statements on hybrid and composite algorithm support as distributions publish them, and update the record.

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.