nethsm-key-sign(1)
π nethsm-key-sign β the "nethsm key sign" command
okay so welcome to the nethsm-key-sign page, bestie π«Ά this is part of the General Commands Manual and honestly it's giving "small command, big responsibilities." it signs a message with a key on your NetHSM. that's the whole vibe. let's get into it β¨
πΈ SYNOPSIS πΈ
nethsm key sign [-a|--auth-passphrase-file] [-f|--force] [-c|--config]
[-o|--output] [-l|--label] [-u|--user] [-h|--help] <KEY_ID>
<SIGNATURE_TYPE> <MESSAGE>
π¦ DESCRIPTION π¦
The nethsm key sign command π« that's literally it, that's the description β but like, functionally, it's the one that makes a signature for a message using a key on your device. three things go in: the key id, the signature type, and the message file. slay.
π OPTIONS π
-a,--auth-passphrase-file<AUTH_PASSPHRASE_FILE>β the path to a file holding a passphrase for authentication π the passphrase in that file must be the one for the user you picked for this command, no cap.
you can pass this option multiple times, which you'll need for commands that want several roles at once. when you do, ordering matters β the files get matched up to the respective users you gave with the --user option, in order. π
may also be specified with the NETHSM_AUTH_PASSPHRASE_FILE environment variable.
-f,--forceβ write to the output file even if it already exists already π like, yes, overwrite it, i said what i said. May also be specified with theNETHSM_FORCEenvironment variable.-c,--config<CONFIG>β the path to a custom configuration file π if you specify it, your custom config gets used instead of the default configuration file location. May also be specified with theNETHSM_CONFIGenvironment variable.-o,--output<OUTPUT>β the optional path to a specific file that the signature is written to βοΈ optional being the key word. May also be specified with theNETHSM_KEY_SIGNATURE_OUTPUT_FILEenvironment variable.-l,--label<LABEL>β a label uniquely identifying a device in the configuration file π·οΈ must be provided if more than one device is set up in the configuration file. no label, no clue which device, we don't do that here. May also be specified with theNETHSM_LABELenvironment variable.-u,--user<USER>β a user name which is used for a command π€ can be provided if no user name is set up in the configuration file for a device. must be provided if several user names of the same target role are set up 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. multi-role main character energy π
May also be specified with the NETHSM_USER environment variable.
-h,--helpβ print help (see a summary with-h) π«Ά yes bestie, there's a summary version, use it when you're in a hurry.<KEY_ID>β the ID of the key to use for signing the message π May also be specified with theNETHSM_KEY_IDenvironment variable.<SIGNATURE_TYPE>β the signature type to use for the signature β¨ one of:
["EcdsaK256", "EcdsaP224", "EcdsaP256", "EcdsaP384",
"EcdsaP521", "EdDsa", "Pkcs1", "PssSha1", "PssSha224",
"PssSha256", "PssSha384", "PssSha512"]
May also be specified with the NETHSM_KEY_SIGNATURE_TYPE environment variable.
<MESSAGE>β the path to a message for which to create a signature π¨ yes, it's a path, not the raw message text. lowkey important. May also be specified with theNETHSM_KEY_SIGNATURE_MESSAGEenvironment variable.
β οΈ tiny vibe check: the--userordering + repeated--auth-passphrase-filething is real. if you're doing multi-role stuff, keep your passphrase files in the same order as your users, or it's giving chaos π
and that's the whole page, bestie π this was nethsm-key-sign, filed under nethsm-key-sign(1) in the General Commands Manual β now go forth and sign something iconic πβ¨
π¦ 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