aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nitrocli-otp-qr.123
1 files changed, 23 insertions, 0 deletions
diff --git a/nitrocli-otp-qr.1 b/nitrocli-otp-qr.1
new file mode 100644
index 0000000..7e907d9
--- /dev/null
+++ b/nitrocli-otp-qr.1
@@ -0,0 +1,23 @@
+.TH NITROCLI-OTP-QR 1 2019-01-07
+.SH NAME
+nitrocli-otp-qr \- read OTP configuration from a QR code and store it on a
+Nitrokey device
+.SH SYNOPSIS
+\fBnitrocli-otp-qr\fR \fIslot\fR [\fIfile\fR] \fB\-\-name \fIname\fR
+.SH DESCRIPTION
+\fBnitrocli-otp-qr\fR reads one-time password configuration from a QR code and
+stores it in an OTP slot on a Nitrokey device using \fBnitrocli\fR(1).
+
+\fIslot\fR is the number of the OTP slot to store the data in.
+\fIfile\fR is the image file to read the QR code from.
+If the argument is omitted, \fBimport\fR(1) is called and the user may select a
+screen region to capture the QR code from.
+
+The QR code must contain a otpauth URI as specified by Google Authenticator.
+
+.SH OPTIONS
+.TP
+\fB\-\-name \fIname\fR
+Set the name to store in the OTP slot.
+If this option is not set, \fBzenity\fR(1) is used to query a name
+interactively.