NVME-KEYS-CHECK-T(1) NVMe Manual NVME-KEYS-CHECK-T(1)

# [NAME](#NAME)

nvme-keys-check-tls-psk - Check a NVMe TLS PSK

# [SYNOPSIS](#SYNOPSIS)

```
nvme [<global-options>] keys check-tls-psk [--keyring=<name> | -k <name>]


                        [--keytype=<type> | -t <type>]


                        [--hostnqn=<nqn> | -n <nqn>]


                        [--subsysnqn=<nqn> | -c <nqn>]


                        [--keydata=<key> | -d <key>]


                        [--identity=<id-vers> | -I <id-vers>]


                        [--compat | -C]
```

# [DESCRIPTION](#DESCRIPTION)

Checks if the key is a valid NVMe TLS configured PSK in the PSK interchange format *NVMeTLSkey-1:&lt;hmac&gt;:&lt;base64-encoded data&gt;:* and prints the hash function it records and the length of the PSK.

If *--keydata* is not given the configured PSK is read from stdin, which also allows reading it from a file, e.g. *nvme keys check-tls-psk &lt; keyfile*.

If *--subsysnqn* is given the TLS PSK identity of the key is also printed, and the specified keyring is checked for a TLS PSK already stored under that identity; the result (loaded or not, with its serial number if loaded) is reported. This command never modifies the keyring; to insert a TLS PSK use [**nvme-keys-insert-tls-psk**(1)](/man/os/nvme-cli/nvme-keys-insert-tls-psk.1).

# [OPTIONS](#OPTIONS)

-k &lt;name&gt;, --keyring=&lt;name&gt;

Name of the keyring to check for an already loaded TLS PSK. Default is *.nvme*.

-t &lt;type&gt;, --keytype=&lt;type&gt;

Key type of the TLS PSK to look up. Default is *psk*.

-n &lt;nqn&gt;, --hostnqn=&lt;nqn&gt;

Host NVMe Qualified [Name (NQN)](/man/os/nvme-cli/Name.NQN) to be used when checking whether the TLS PSK is already loaded. Only used together with --subsysnqn. Defaults to the host NQN of the system, read from /etc/nvme/hostnqn or, if that file does not exist, generated from the host ID.

-c &lt;nqn&gt;, --subsysnqn=&lt;nqn&gt;

Subsystem NVMe Qualified [Name (NQN)](/man/os/nvme-cli/Name.NQN) to be used when checking whether the TLS PSK is already loaded. If not given, only the configured PSK format is validated.

-d &lt;key&gt;, --keydata=&lt;key&gt;

Configured PSK to be checked. If not given, it is read from stdin.

-I &lt;id-vers&gt;, --identity=&lt;id-vers&gt;

TLS PSK identity version of the identity to look up; *0* (the default) is obsolete and defined in the NVMe TCP Transport Specification 1.0, *1* is TLS 1.3 with the PSK digest in the PSK identity.

-C, --compat

Use the original non-RFC 8446 compliant algorithm when deriving the TLS PSK identity for compatibility with older implementations. Has no effect with identity version *0*, whose identity does not embed the PSK digest.

# [GLOBAL OPTIONS](#GLOBAL_OPTIONS)

The following options are defined at the top-level nvme command and are available to this subcommand:

--dry-run

Print the command that would be executed, but do not actually execute it.

--no-ioctl-probing

Disable probing for 64-bit IOCTL support.

--no-retries

Disable retry logic on transient errors.

-o &lt;fmt&gt;, --output-format=&lt;fmt&gt;

Set the reporting format to *normal*, *tabular, 'json*, or *binary*. Only one output format may be used at a time.

--output-format-version=&lt;version&gt;

Select the output format version. Version *1* uses the original field naming, while version *2* (default) provides more consistent and script-friendly field names.

--timeout=&lt;ms&gt;

Set the timeout for the command in milliseconds.

-v, --verbose

Increase the level of detail in the output. May be specified multiple times to further increase verbosity.

These options can also be set as machine-wide defaults in [nvme-cli.conf(5)](/man/os/nvme-cli/nvme-cli.conf.5). A command-line flag always overrides the file.

# [EXAMPLES](#EXAMPLES)

No Examples

# [NVME](#NVME)

Part of the nvme-user suite

09/18/2026 NVMe

---

Document: nvme-keys-check-tls-psk(1) from nvme-cli 3.1-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
