← Back to section · Tutorials & Labs

Taking Stock of a Machine's OpenSSL Algorithms with the list Command

Before and after upgrades, when moving machines, and when troubleshooting, spend five minutes exporting the machine's OpenSSL version, providers and algorithm lists into an archive. This article gives a fixed inventory procedure and how to read it, so algorithm-support questions have evidence behind them.

Published 22 November 2026 · 6 min read · PQ Frontier

Taking Stock of a Machine's OpenSSL Algorithms with the list Command
AI-generated site artwork
Video explainer · OpenSSL practice: command line and API

“Does this machine actually support ML-KEM?” is a question that comes up again and again in migration projects, and the most common way of answering it is memory and guesswork. The correct approach is an inventory: OpenSSL ships a complete self-inspection toolchain, and its core is the list command. Spend five minutes exporting the machine’s full algorithm assets into a text archive, and from then on — upgrade regressions, cross-machine comparisons, fault localisation — you have evidence to work from.

Step 1: Version and Build Information

openssl version -a

One command yields the version number, build date, compile options, and key paths such as OPENSSLDIR (where the configuration file lives) and MODULESDIR (the provider module directory). The first gate of a post-quantum inventory is right here: native ML-KEM, ML-DSA and SLH-DSA require 3.5 or later. If the version is insufficient, nothing else needs checking; if the version suffices but algorithms are missing, the cause lies at the provider layer. Save this line verbatim into the inventory file — it is also the single most useful piece of information when filing a ticket with a colleague or a vendor later.

Step 2: The Provider List

openssl list -providers -verbose

Confirm that default is activated, whether fips exists, and whether the module directory matches the path reported by version -m. An external provider (for example oqsprovider, which supplies experimental algorithms) should also appear here if installed; if it does not, check the configuration file’s activation and whether OPENSSL_MODULES points at the right directory before reaching for a reinstall.

Step 3: Export the Algorithm Lists by Category

openssl list -kem-algorithms
openssl list -signature-algorithms
openssl list -public-key-algorithms
openssl list -digest-algorithms
openssl list -cipher-algorithms
openssl list -mac-algorithms
openssl list -tls-groups

Three points on how to read the output. First, the suffixes: @default and @fips after an algorithm name show which provider supplies the implementation, and the same algorithm may appear several times (offered by several providers) — normal in mixed FIPS configurations. Second, the grouping: list -kem-algorithms organises its output by source, and on a 3.5 machine you should find the three lines ML-KEM-512/768/1024; the signature list should carry ML-DSA-44/65/87 and the SLH-DSA parameter sets. Third, an empty list does not mean unsupported: property queries and provider activation state both shape the output — in an environment where only the fips provider is activated, algorithms unique to default simply do not appear. For TLS groups, openssl list -tls-groups lists the group names the local implementation supports (by default, those compatible with TLS 1.3); but a group being “listed” does not mean a given service will negotiate it with you — the final word is always the negotiation result you see when connecting with s_client (the TLS lab in this section has the full procedure).

Save the whole set as a baseline file:

mkdir -p ~/openssl-inventory
{ openssl version -a; openssl list -providers -verbose; \
  openssl list -kem-algorithms; openssl list -signature-algorithms; \
  openssl list -public-key-algorithms; openssl list -digest-algorithms; \
  openssl list -cipher-algorithms; openssl list -mac-algorithms; } \
  > ~/openssl-inventory/$(hostname)-$(date +%F).txt 2>&1

Step 4: Three Uses for the Inventory

Upgrade regression: after a distribution upgrades OpenSSL from 3.0 to 3.5, re-run the inventory and diff it against the old baseline — the new PQC algorithms and the vanished old ones (sometimes moved into the unactivated legacy provider) show up immediately. Cross-machine comparison: when two machines behave differently, diff their two inventory files first; most “same command, different result” problems are already answered in the version and provider lines. Migration survey: run this command set in batch across a fleet of servers and aggregate the results, and you get the PQC readiness distribution of the whole estate — far faster than logging into each machine and probing by trial and error.

One inventory blind spot to remember: list reflects the OpenSSL that the command-line tool links against. A machine may hold several copies — the system OpenSSL, libraries bundled with applications, copies inside containers — and the inventory’s conclusions are valid only for that one binary. To confirm which copy a specific application (say nginx or curl) uses, check separately with something like ldd $(which nginx); do not stretch one inventory over every program on the machine.

Supplement: Two Corners That Are Easy to Miss

First, disabled features. openssl list -disabled lists what this build switched off at compile time (for instance, some builds disable old protocols or specific algorithms). When an algorithm exists in the documentation but cannot be coaxed out of your build, the answer may be in this list — distribution-customised builds and self-compiled versions in particular can differ in feature surface even at the same version number. Second, the command set itself: openssl list -commands lists every subcommand the current binary supports, and openssl list -options <subcommand> shows all options a subcommand accepts. On 3.5, checking whether -encap appears in the output of openssl list -options pkeyutl is the direct way to tell whether this build can do command-line KEM operations — faster than reading release notes.

Inventory frequency also deserves a rule: not daily, but at change points — after a major OS upgrade, after a standalone OpenSSL upgrade, when a new machine is accepted into the network, and at each stage of a migration project. Keep one dated, hostname-labelled baseline per run; over time the collection itself becomes a complete archive of how the environment evolved. When aggregating many machines, collect the outputs with a script and grep uniformly for the target algorithm names — the readiness of dozens of machines can be mapped in half an hour, far more reliably than sending out a questionnaire for each site to self-report.

One more column of the inventory is often wasted: the implementation details next to algorithm names. Under -verbose, list -kem-algorithms and list -signature-algorithms give each algorithm’s provider and properties, and an algorithm offered by both default and fips appears on separate lines. For compliance assessments this output doubles as evidence: which algorithms have a FIPS implementation and which only a default one is visible at a glance, saving a document-by-document search. Likewise, recording the random number generator’s state while you are at it (openssl list -random-instances) has value — in scenarios such as VM cloning and snapshot restore, RNG state is a genuine risk point, and one line in the inventory lets you rule that direction in or out quickly when something goes wrong later.

The inventory can go one step further: turn the presence of target algorithms into script assertions — for example, have the inventory script end with openssl list -kem-algorithms | grep -q ML-KEM-768 and return a non-zero exit code when it is not found. That turns the inventory from “a report someone generates and reads” into “an automatic gate that can hang in inspection and deployment pipelines”, intercepting non-compliant environments when new machines come online or images are updated, and turns readiness checking from a one-off project activity into a standing discipline.

Summary

An inventory is not a substitute for troubleshooting; it is its prerequisite: version, providers, five categories of algorithm lists and the TLS groups, exported into one dated text file at a cost of five minutes. With that baseline in hand, every later step — changing configuration, building from source, chasing an error — has a reference point against which to compare what changed.

Tags: OpenSSLlistinventoryoperations