nethsm-openpgp-import(1)
π nethsm-openpgp-import(1) β the glow-up π
okay so bestie, you're about to import a key into your Nitrokey NetHSM, and the manual page for nethsm-openpgp-import is gonna walk you through it. this is the page for the nethsm openpgp import command, straight out of the General Commands Manual, and we're gonna go through every single flag together. grab a snack π
β¨ NAME β¨
nethsm-openpgp-import β literally just the nethsm openpgp import command, that's the whole vibe π
π¦ SYNOPSIS π¦
nethsm openpgp import [-a|--auth-passphrase-file] [-k|--key-id]
[-c|--config] [-t|--tags] [-l|--label] [-u|--user] [-h|--help]
<TSK_FILE>
like, that's the shape of it, ok? one file argument, a lil pile of options. slay.
πΈ DESCRIPTION πΈ
The nethsm openpgp import command. that's it, that's the description β she's brief but she's iconic π
π OPTIONS π
-a,--auth-passphrase-file <AUTH_PASSPHRASE_FILE>β the path to a file holding a passphrase for authentication π the passphrase inside that file must be the one for the user you picked for this command, no substitutions bestie. this option can be given multiple times, which you need for commands that require multiple roles at once. when you pass multiple passphrase files, ordering matters β the files get assigned to the respective user provided by the--useroption, in order. no shuffling π may also be specified with theNETHSM_AUTH_PASSPHRASE_FILEenvironment variable.-k,--key-id <KEY_ID>β an optional unique ID assigned to the imported key π if you don't pass one, a generic one gets generated for the key. so like, it's optional, but it's yours if you want it. may also be specified with theNETHSM_OPENPGP_KEY_IDenvironment variable.-c,--config <CONFIG>β the path to a custom configuration file π if you specify it, that custom config file gets used instead of the default configuration file location. no cap. may also be specified with theNETHSM_CONFIGenvironment variable.-t,--tags <TAGS>β an optional list of tags assigned to the imported key π·οΈ and here's why tags ate: tags on keys are used to grant access to those keys for users that carry the same tags. iykyk. may also be specified with theNETHSM_OPENPGP_KEY_TAGSenvironment variable.-l,--label <LABEL>β an optional label assigned to the imported key ποΈ labels are how you filter keys in the list of all keys. very handy, very main character. may also be specified with theNETHSM_OPENPGP_KEY_LABELenvironment variable.-u,--user <USER>β a user name used for a command π€ you can provide it if there's no user name set up in the configuration file for a device. you must provide it 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. may also be specified with theNETHSM_USERenvironment variable.-h,--helpβ print help (see a summary with-h) π«Ά<TSK_FILE>β the path to the Transferable Secret Key file to import π may also be specified with theNETHSM_OPENPGP_TSK_FILEenvironment variable.
β οΈ heads up: <TSK_FILE> is a Transferable Secret Key file. that's a secret key, bestie. handle it like the precious thing it is, don't go waving it around π
π SEE ALSO π
no SEE ALSO section on this one β she stands alone, and honestly? respect β¨
okay that's the whole page, every flag, every env var, nothing skipped, periodt π and for the sign-off: this was nethsm-openpgp-import from the nethsm-openpgp-import source, General Commands Manual β the page doesn't stamp a version or a date on it, so we're not gonna invent one π stay hydrated, back up your keys, and go import 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