table of contents
| NVME-KEYS-CHECK-T(1) | NVMe Manual | NVME-KEYS-CHECK-T(1) |
NAME¶
nvme-keys-check-tls - Check a NVMe TLS PSK
SYNOPSIS¶
nvme [<global-options>] keys check-tls [--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¶
Checks if the key is a valid NVMe TLS PSK in the PSK interchange format NVMeTLSkey-1:01:<base64-encoded data>: and prints the resulting HMAC algorithm and key length.
If --keydata is not given the key is read from stdin, which also allows checking a key stored in a file, e.g. nvme keys check-tls < keyfile.
If --subsysnqn is given the TLS identity of the key is also printed, and the specified keyring is checked for a retained key 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 retained key use linknvme-keys-insert-tls[1].
OPTIONS¶
-k <name>, --keyring=<name>
-t <type>, --keytype=<type>
-n <nqn>, --hostnqn=<nqn>
-c <nqn>, --subsysnqn=<nqn>
-d <key>, --keydata=<key>
-I <id-vers>, --identity=<id-vers>
-C, --compat
GLOBAL OPTIONS¶
The following options are defined at the top-level nvme command and are available to this subcommand:
--dry-run
--no-ioctl-probing
--no-retries
-o <fmt>, --output-format=<fmt>
--output-format-version=<version>
--timeout=<ms>
-v, --verbose
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
NVME¶
Part of the nvme-user suite
| 07/31/2026 | NVMe |