2025-02-16 12:15:30 +01:00
|
|
|
nvme-gen-tls-key(1)
|
|
|
|
======================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
nvme-gen-tls-key - Generate a NVMe TLS PSK
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
[verse]
|
2025-02-16 12:23:04 +01:00
|
|
|
'nvme gen-tls-key' [--keyring=<name> | -k <name>]
|
|
|
|
[--keytype=<type> | -t <type> ]
|
|
|
|
[--hostnqn=<nqn> | -n <nqn>]
|
|
|
|
[--subsysnqn=<nqn> | -c <nqn>]
|
|
|
|
[--hmac=<hmac-id> | -h <hmac-id>]
|
2025-02-16 12:15:30 +01:00
|
|
|
[--secret=<secret> | -s <secret> ]
|
2025-02-16 12:23:04 +01:00
|
|
|
[--insert | -i ]
|
2025-02-16 12:15:30 +01:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2025-02-16 12:23:04 +01:00
|
|
|
Generate a base64-encoded NVMe TLS pre-shared key (PSK).
|
|
|
|
The resulting key is either printed in the PSK interchange format
|
|
|
|
'NVMeTLSkey-1:01:<base64 encoded data>:',
|
|
|
|
inserted as a 'retained' key into the specified keyring, or both.
|
|
|
|
When the PSK should be inserted into the keyring a 'retained' key
|
|
|
|
is derived from the secret key material, and the resulting 'retained'
|
|
|
|
key is stored with the identity
|
|
|
|
'NVMe0R0<hmac> <host NQN> <subsystem NQN>'
|
|
|
|
in the keyring.
|
|
|
|
The 'retained' key is derived from the secret key material,
|
|
|
|
the specified subsystem NQN, and the host NQN.
|
|
|
|
Once the 'retained' key is stored in the keyring the original
|
|
|
|
secret key material cannot be retrieved.
|
2025-02-16 12:15:30 +01:00
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
-------
|
2025-02-16 12:23:04 +01:00
|
|
|
-k <name>::
|
|
|
|
--keyring=<name>::
|
|
|
|
Name of the keyring into which the 'retained' TLS key should be
|
|
|
|
stored. Default is '.nvme'.
|
|
|
|
|
|
|
|
-t <type>::
|
|
|
|
--keytype=<type>::
|
|
|
|
Type of the key for resulting TLS key.
|
|
|
|
Default is 'psk'.
|
|
|
|
|
|
|
|
-n <nqn>::
|
|
|
|
--hostnqn=<nqn>::
|
|
|
|
Host NVMe Qualified Name (NQN) to be used to derive the
|
|
|
|
'retained' TLS key
|
|
|
|
|
|
|
|
-c <nqn>::
|
|
|
|
--subsysnqn=<nqn>::
|
|
|
|
Subsystem NVMe Qualified Name (NQN) to be used to derive the
|
|
|
|
'retained' TLS key
|
|
|
|
|
2025-02-16 12:15:30 +01:00
|
|
|
-h <hmac-id>::
|
|
|
|
--hmac=<hmac-id>::
|
|
|
|
Select a HMAC algorithm to use. Possible values are:
|
|
|
|
1 - SHA-256 (default)
|
|
|
|
2 - SHA-384
|
|
|
|
|
|
|
|
-s <secret>::
|
|
|
|
--secret=<secret>::
|
|
|
|
Secret value (in hexadecimal) to be used for the key. If none are
|
|
|
|
provided a random value is used.
|
|
|
|
|
2025-02-16 12:23:04 +01:00
|
|
|
-i::
|
|
|
|
--insert::
|
|
|
|
Insert the resulting TLS key into the keyring without printing out
|
|
|
|
the key in PSK interchange format.
|
|
|
|
|
2025-02-16 12:15:30 +01:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
No Examples
|
|
|
|
|
|
|
|
NVME
|
|
|
|
----
|
|
|
|
Part of the nvme-user suite
|