Find the OpenSSL your services actually use

Inventory the OpenSSL version, providers and linked services before changing a TLS setting that may not apply.

Quick answer: Find the OpenSSL the service actually links before changing a group list. A 3.5 shell binary does not prove the daemon, container or crypto policy uses it.

Before you change a group list, find out which OpenSSL your service actually loads. The shell's openssl binary is often not the library the daemon uses, especially in containers and on distributions with crypto policies.

What this guide covers

It covers inventory and verification for OpenSSL-based services on Linux. It does not cover data at rest, code signing or QKD. The goal is to know what the service can negotiate before you ask it to negotiate a hybrid group.

Start with the package and the binary

openssl version -a
command -v openssl
readlink -f "$(command -v openssl)"

Then check the service you care about, not just the shell:

ldd "$(command -v nginx)" | grep -E 'ssl|crypto'
ldd "$(command -v apache2 || command -v httpd)" | grep -E 'ssl|crypto'
ldd "$(command -v postfix)" | grep -E 'ssl|crypto'

If the linked libssl is older than 3.5, the hybrid ML-KEM groups are not available to that service. Upgrade the package or move TLS termination to a proxy that has 3.5+.

Check the running process

A service can load a library from a non-standard path or a container layer.

pid=$(systemctl show -p MainPID --value nginx)
sudo ls -l /proc/$pid/maps | grep -E 'libssl|libcrypto'
sudo lsof -p "$pid" 2>/dev/null | grep -E 'libssl|libcrypto'

For a container:

docker exec <container> openssl version -a
docker exec <container> sh -c 'ldd $(command -v nginx) | grep -E "ssl|crypto"'

The container's library is the one that matters, not the host's.

Check distribution crypto policy

On RHEL-family systems, the system-wide crypto policy can remove groups or protocols even when the library supports them.

update-crypto-policies --show
update-crypto-policies --check

On Debian and Ubuntu, check the service configuration and the package versions:

dpkg -l | grep -E 'openssl|libssl'
apt-cache policy libssl3 libssl3t64 2>/dev/null

Do not change the system-wide policy just to make one test pass. Record the policy, the service configuration and the effective result.

Check the service configuration

For nginx:

nginx -T 2>/dev/null | grep -E 'ssl_protocols|ssl_ecdh_curve|ssl_conf_command'

For Apache:

apachectl -S 2>/dev/null
grep -R "SSLOpenSSLConfCmd\|SSLProtocol" /etc/apache2 /etc/httpd 2>/dev/null

You are looking for a group list that omits the hybrid group, an old protocol setting, or a TLS-terminating proxy in front of the service.

Verify the negotiated group

From an OpenSSL 3.5+ client:

openssl s_client \
  -connect example.com:443 \
  -servername example.com \
  -tls1_3 \
  -groups X25519MLKEM768 \
  </dev/null 2>/dev/null | grep -i "Negotiated TLS1.3 group"

Expected:

Negotiated TLS1.3 group: X25519MLKEM768

If the client is older than 3.5, it cannot ask for the group. Upgrade the client first, or use the product's quantum check from an agent with PQ support.

Verify with Ready for Quantum

CheckWhat it answers
quantumDid this connection negotiate a PQ key exchange?
quantumcertDoes the certificate have the tested PQ property?
httpsIs trust and expiry acceptable?
run_busybox_commandWhat does the local host report?
Command ProcessorWhat versions, paths and config fragments are present?

Use an agent on the same host or network. A public scanner cannot see a private service, and a host agent may see a different library from a container.

Version matrix

Where to lookWhat it tells you
openssl version -aThe shell binary, not the service
ldd / process mapsThe library the daemon loads
Container imageThe library inside the container
Crypto policyWhether a group is allowed

Failure example

The host shell reports OpenSSL 3.5, but the service runs in a container that bundles 3.0. The host test passes and the container test fails. Checking the container's library and rebuilding the image fixes the gap.

Automate the inventory

A Command Processor is a good fit for a repeatable inventory:

  • OS and kernel version.
  • OpenSSL version and path.
  • Linked libssl/libcrypto for each service.
  • Crypto policy.
  • Effective TLS configuration.
  • Certificate paths and expiry.

An AgentFlow can run the inventory, add the quantum and quantumcert checks, collect the results and produce a report. A Connect can repeat the quantum check and alert on regression.

What can go wrong

  • The shell has OpenSSL 3.5 but the service links an older library.
  • A container bundles its own OpenSSL.
  • A crypto policy removes the group.
  • A CDN or load balancer terminates TLS before the service.
  • The service uses a different config file from the one you edited.

Limits

  • Inventory is not a fix.
  • One target and one agent per check.
  • The agent's algorithm set matters.
  • No data-at-rest or QKD coverage.
  • A clean check does not prove every service on the host is configured the same way.

Next

Common questions

How do I find the OpenSSL a service uses?

Use ldd on the service binary, inspect /proc/<pid>/maps for the running process, and check the container's own library when the service runs in Docker. The shell openssl binary can be a different version from the one the daemon loads.

Does the system openssl version prove the service supports PQ?

No. A 3.5 shell binary does not mean nginx, Apache or Postfix links the same library. A container can bundle an older copy, and a crypto policy can remove groups. Check the linked library and the effective configuration.

How do I verify the result?

Run openssl s_client against the service from a 3.5+ client and look for the negotiated group. For production evidence, add the host on quantum and quantumcert from an agent that can reach it, and record the versions and paths alongside the result.

Keep exploring

Quantum-secure OpenSSL: hybrid TLS that actually negotiates

Enable hybrid ML-KEM key exchange on OpenSSL 3.5+, prove the negotiated group, and separate the session from the certificate.

Quantum-secure nginx: prove the origin negotiates hybrid TLS

Configure nginx against OpenSSL 3.5+, prefer X25519MLKEM768, and test the origin rather than only the CDN.

Quantum-secure Apache httpd: SSLOpenSSLConfCmd Groups

Set the hybrid group list on Apache, keep a classical fallback, and verify the negotiated group from a chosen agent.

Browse the library · Quantum readiness docs · Check a system