nethsm-key-encrypt(1)
NAME β¨
okay bestie, welcome to the nethsm-key-encrypt(1) page from the General Commands Manual β manual name folded in right here so we donβt have to copy that crusty header line π
nethsm-key-encrypt β literally the nethsm key encrypt command, and yes sheβs iconic for it π
SYNOPSIS πΈ
nethsm key encrypt [-a|--auth-passphrase-file] [-f|--force]
[-c|--config] [-i|--initialization-vector] [-l|--label] [-o|--output]
[-u|--user] [-h|--help] <KEY_ID> <MESSAGE> [ENCRYPT_MODE]
DESCRIPTION π¦
The nethsm key encrypt command. Thatβs the whole vibe check β this is the command page for it, and weβre about to go through every flag like itβs a group chat receipt π₯
OPTIONS β¨
-a,--auth-passphrase-file <AUTH_PASSPHRASE_FILE>β the path to a file containing a passphrase for authentication. The passphrase in that file must be the one for the user chosen for the command, no cap. This option can be provided multiple times, which is needed for commands that require multiple roles at once. With multiple passphrase files, ordering matters because the files are assigned to the respective user provided by the--useroption. May also be specified with theNETHSM_AUTH_PASSPHRASE_FILEenvironment variable. π-f,--forceβ write to the output file even if it exists already. May also be specified with theNETHSM_FORCEenvironment variable. π«Ά-c,--config <CONFIG>β the path to a custom configuration file. If specified, the custom configuration file is used instead of the default configuration file location. May also be specified with theNETHSM_CONFIGenvironment variable. π-i,--initialization-vector <INITIALIZATION_VECTOR>β the path to a file containing the initialization vector (IV) for symmetric encryption. The IV can only be used when choosing symmetric encryption (i.e. withAesCbc). May also be specified with theNETHSM_KEY_ENCRYPT_IVenvironment variable. π§-l,--label <LABEL>β a label uniquely identifying a device in the configuration file. Must be provided if more than one device is setup in the configuration file. May also be specified with theNETHSM_LABELenvironment variable. π-o,--output <OUTPUT>β the path to a specific file to write the encrypted message to. May also be specified with theNETHSM_KEY_ENCRYPT_OUTPUTenvironment variable. π-u,--user <USER>β a user name which is used for a command. Can be provided if no user name is setup in the configuration file for a device. Must be provided if several user names of the same target role are setup in the configuration file for a device. This option can be provided multiple times, which is needed for commands that require multiple roles at once. May also be specified with theNETHSM_USERenvironment variable. π-h,--helpβ print help (see a summary with-h). π<KEY_ID>β the ID of the key to use for encryption. May also be specified with theNETHSM_KEY_IDenvironment variable. π<MESSAGE>β the path to a message to encrypt. May also be specified with theNETHSM_KEY_ENCRYPT_MESSAGEenvironment variable. π[ENCRYPT_MODE]β the encryption mode to use. One of["AesCbc"](defaults toAesCbc). May also be specified with theNETHSM_KEY_ENCRYPT_MODEenvironment variable. β
bestie, remember: the IV only works with AesCbc, and thatβs not a suggestion β itβs literally what the page says π
Cute sign-off π: footer source/version check β itβs just nethsm-key-encrypt mirrored on both sides, with no version or date shown, so thatβs the whole ending vibe. periodt π
π¦ where this page comes from
- arch rolling: nethsm-cli 0.10.0-1 Β· Apache-2.0 OR MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms