1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 23:17:58 +01:00
tldr/pages/linux/keyctl.md
Lena d427f333b2
pages/*: add backticks around I/O streams (#10436)
* as suggested in #10428
* standard input  => `stdin`
* standard output => `stdout`
* standard error  => `stderr`

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 10:59:02 +05:30

36 lines
801 B
Markdown

# keyctl
> Manipulate the Linux kernel keyring.
> More information: <https://manned.org/keyctl>.
- List keys in a specific keyring:
`keyctl list {{target_keyring}}`
- List current keys in the user default session:
`keyctl list {{@us}}`
- Store a key in a specific keyring:
`keyctl add {{type_keyring}} {{key_name}} {{key_value}} {{target_keyring}}`
- Store a key with its value from `stdin`:
`echo -n {{key_value}} | keyctl padd {{type_keyring}} {{key_name}} {{target_keyring}}`
- Put a timeout on a key:
`keyctl timeout {{key_name}} {{timeout_in_seconds}}`
- Read a key and format it as a hex-dump if not printable:
`keyctl read {{key_name}}`
- Read a key and format as-is:
`keyctl pipe {{key_name}}`
- Revoke a key and prevent any further action on it:
`keyctl revoke {{key_name}}`