доступ к устройствам Nitrokey (access Nitrokey devices)
Конфигурационный файл (Config file)
nitrocli
tries to read the configuration file at
${XDG_CONFIG_HOME}/nitrocli/config.toml
(or
${HOME}/nitrocli/config.toml
if the XDG_CONFIG_HOME
environment
variable is not set). It is used to set default values for the
options listed below.
You can also set the environment variable NITROCLI_
KEY to
overwrite the configuration for key (see the Environment
section). Note that command-line arguments overwrite both the
configuration file and the environment variables.
The following values can be set in the configuration file:
model
Restrict connections to the given device model (string,
default: not set, see --model
).
serial_numbers
Restrict connections to the given serial numbers (list of
strings, default: empty, see --serial-number
).
usb_path
Restrict connections to the given USB path (string,
default: not set, see --usb-path
).
no_cache
If set to true, do not cache any inquired secrets
(boolean, default: false, see --no-cache
).
verbosity
Set the log level (integer, default: 0, see --verbose
).
The configuration file must use the TOML format, for example:
model = "pro"
serial_numbers = ["0xf00baa", "deadbeef"]
usb_path = "0001:0006:02"
no_cache = false
verbosity = 0