From 10fcd3a946a270fc6d111252b2de08dcd625a2b8 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 14 Feb 2018 11:12:45 +0100 Subject: Initial commit with support for OTP generation --- nkotp.1.pod | 141 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 nkotp.1.pod (limited to 'nkotp.1.pod') diff --git a/nkotp.1.pod b/nkotp.1.pod new file mode 100644 index 0000000..875042e --- /dev/null +++ b/nkotp.1.pod @@ -0,0 +1,141 @@ +=head1 NAME + +nkotp - one-time password generator for Nitrokey devices + +=head1 SYNOPSIS + +B +S<[B<-a> I]> +S<[B<-c> I]> +S<[B<-m> I]> +S<[B<-s> I]> +S | B<-h> | B<-v>> + +=head1 DESCRIPTION + +B provides access to the one-time password (OTP) generator on Nitrokey +devices. Currently, B only supports the generation of OTPs. + +If an action requires the user password, it is prompted from the standard +input or read from the environment variable B (if set). + +=head1 OPTIONS + +=head2 General options + +=over + +=item B<-a> I, B<--algorithm> I + +Set the algorithm to use for one-time password operations. I can be +B for HOTP and B for TOTP (default). + +=item B<-c> I, B<--config> I + +Read the configuration from I. See the B section for the default +configuration files. + +=item B<-m> I, B<--model> I + +Set the Nitrokey model to connect to. I can be B

for a Nitrokey Pro, +B for a Nitrokey Storage and B for automatic selection (default). + +=item B<-s> I, B<--slot> I + +Set the slot to use for one-time password operations. The available slots +depend on the OTP algorithm (see B<--algorithm>). Currently, Nitrokey devices +provide three HOTP and 15 TOTP slots. The slot numbering starts at one. The +default value for this option is one. + +=back + +=head2 Modes of operation + +=over + +=item B<-g>, B<--generate> + +Generate a one-time password on the Nitrokey device and output it. The OTP +algorithm is set with the B<--algorithm> option. The OTP slot on the Nitrokey +device is set with the B<--slot> option. + +=item B<-h>, B<--help> + +Print a help message and exit. + +=item B<-v>, B<--version> + +Print version information and exit. + +=back + +=head1 CONFIGURATION + +B can read default values for the command-line options from a +configuration file. See the B section for more information on the +possible locations for the configuration file. + +The configuration file may assign values to the following options: + +=over + +=item B + +=item B + +=item B + +=back + +Each option corresponds to the command-line option with the same name. Values +set in the configuration file take precedence over environment variables. + +The configuration file should contain one assignment per line. Assignments +have the form C