-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement persistent keys #2252
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
nvme-tls-key(1) | ||
====================== | ||
|
||
NAME | ||
---- | ||
nvme-tls-key - Manage NVMe TLS PSKs | ||
|
||
SYNOPSIS | ||
-------- | ||
[verse] | ||
'nvme tls-key' [--keyring=<name> | -k <name>] | ||
[--keytype=<type> | -t <type>] | ||
[--keyfile=<file> | -f <file>] | ||
[--import | -i] [--export | -e] | ||
[--verbose | -v] | ||
|
||
DESCRIPTION | ||
----------- | ||
Import or export NVMe TLS pre-shared keys (PSKs) from the | ||
system keystore. When the '--export' option is given, all | ||
NVMe TLS PSKs are exported in the form | ||
|
||
<descriptions> <psk> | ||
|
||
where '<description>' is the key description from the | ||
exported key and '<psk>' is the key data in PSK interchange | ||
format 'NVMeTLSkey-1:01:<base64 encoded data>:'. | ||
Each key is exported in a single line. | ||
When the '--import' option is given key data is read in the | ||
same format and imported into the kernel keystore. | ||
|
||
OPTIONS | ||
------- | ||
-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'. | ||
|
||
-k <file>:: | ||
--keyfile=<file>:: | ||
File to read the keys from or write the keys to instead of | ||
stdin / stdout. | ||
|
||
-i:: | ||
--import:: | ||
Read the key data from the file specified by '--keyfile' | ||
or stdin if not present. | ||
|
||
-e:: | ||
--export:: | ||
Write the key data to the file specified by '--keyfile' | ||
or stdou if not present. | ||
|
||
-v:: | ||
--verbose:: | ||
Increase the information detail in the output. | ||
|
||
EXAMPLES | ||
-------- | ||
No Examples | ||
|
||
NVME | ||
---- | ||
Part of the nvme-user suite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For export, shouldn't this file be opened with in
write
mode?