NVME-KEYS-CHECK-T(1)
β¨ NAME β¨
nvme-keys-check-tls-psk β check a NVMe TLS PSK. Welcome to the NVME-KEYS-CHECK-T(1) page from the NVMe Manual, bestie π
β we're doing PSK format validation and keyring detective work today.
π 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 π
Okay so this command checks if the key is a valid NVMe TLS configured PSK in the PSK interchange format NVMeTLSkey-1:<hmac>:<base64-encoded data>: and prints the hash function it records plus the length of the PSK. Iconic little validation moment β¨.
If --keydata is not given, the configured PSK is read from stdin, which also means you can read it from a file, e.g. nvme keys check-tls-psk < 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 π΅οΈββοΈ.
bestie, this one is strictly read-only: this command never modifies the keyring. To insert a TLS PSK use nvme-keys-insert-tls-psk(1).
πΈ OPTIONS πΈ
-k <name>,--keyring=<name>β Name of the keyring to check for an already loaded TLS PSK. Default is.nvme.-t <type>,--keytype=<type>β Key type of the TLS PSK to look up. Default ispsk.-n <nqn>,--hostnqn=<nqn>β Host NVMe Qualified 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/hostnqnor, if that file does not exist, generated from the host ID.-c <nqn>,--subsysnqn=<nqn>β Subsystem NVMe Qualified 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 <key>,--keydata=<key>β Configured PSK to be checked. If not given, it is read from stdin.-I <id-vers>,--identity=<id-vers>β 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,1is 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 version0, whose identity does not embed the PSK digest.
π¦ 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 <fmt>,--output-format=<fmt>β Set the reporting format tonormal,tabular,'json, orbinary. Only one output format may be used at a time.--output-format-version=<version>β Select the output format version. Version1uses the original field naming, while version2(default) provides more consistent and script-friendly field names. Other versions are rejected.--quietβ Suppress informational messages. Errors are still reported, and--quietcancels any--verbosefor the library log level.--set-options=<key=value>[,<key=value>...]β Set libnvme library options for this invocation. Supported keys areforce-4k,mi-probe-enabled,test-base-dirandtest-sysfs-dir.--timeout=<ms>β Set the timeout for the command in milliseconds.infiniteor-1waits without a time limit (0xffffffff).-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). A command-line flag always overrides the file.
π EXAMPLES π
No Examples π β that's literally the whole section, bestie. Nothing to run here.
π NVME π
Part of the nvme-user suite π.
signing off from the NVMe manual, dated 10/30/2026, on the NVME-KEYS-CHECK-T(1) page β byeee π«Άπ
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms