mirror of
https://github.com/adulau/ootp.git
synced 2024-11-22 10:07:12 +00:00
358 lines
No EOL
5.3 KiB
HTML
358 lines
No EOL
5.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>otp-sct</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"></HEAD
|
|
><BODY
|
|
CLASS="REFENTRY"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><H1
|
|
><A
|
|
NAME="AEN1"
|
|
></A
|
|
><SPAN
|
|
CLASS="APPLICATION"
|
|
>otp-sct</SPAN
|
|
></H1
|
|
><DIV
|
|
CLASS="REFNAMEDIV"
|
|
><A
|
|
NAME="AEN6"
|
|
></A
|
|
><H2
|
|
>Name</H2
|
|
><SPAN
|
|
CLASS="APPLICATION"
|
|
>otp-sct</SPAN
|
|
> -- Smart Card Terminal for One Time Password package.</DIV
|
|
><DIV
|
|
CLASS="REFSYNOPSISDIV"
|
|
><A
|
|
NAME="AEN10"
|
|
></A
|
|
><H2
|
|
>Synopsis</H2
|
|
><P
|
|
><B
|
|
CLASS="COMMAND"
|
|
>otp-sct</B
|
|
> [-1hlpv?] [-c<TT
|
|
CLASS="REPLACEABLE"
|
|
><I
|
|
> count</I
|
|
></TT
|
|
>] [-d<TT
|
|
CLASS="REPLACEABLE"
|
|
><I
|
|
> debug_level</I
|
|
></TT
|
|
>] [-i<TT
|
|
CLASS="REPLACEABLE"
|
|
><I
|
|
> index</I
|
|
></TT
|
|
>] [-r<TT
|
|
CLASS="REPLACEABLE"
|
|
><I
|
|
> reader</I
|
|
></TT
|
|
>] [-v<TT
|
|
CLASS="REPLACEABLE"
|
|
><I
|
|
> firmware_api_version</I
|
|
></TT
|
|
>]</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="REFSECT1"
|
|
><A
|
|
NAME="AEN24"
|
|
></A
|
|
><H2
|
|
>DESCRIPTION</H2
|
|
><P
|
|
>The <B
|
|
CLASS="COMMAND"
|
|
>otp-sct</B
|
|
> command is a user interface to generating
|
|
One Time Passwords with a Smart Card loaded with OTP software.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="REFSECT1"
|
|
><A
|
|
NAME="AEN28"
|
|
></A
|
|
><H2
|
|
>OPTIONS</H2
|
|
><P
|
|
></P
|
|
><DIV
|
|
CLASS="VARIABLELIST"
|
|
><DL
|
|
><DT
|
|
>-c, --sc-count=<TT
|
|
CLASS="REPLACEABLE"
|
|
><I
|
|
> count</I
|
|
></TT
|
|
></DT
|
|
><DD
|
|
><P
|
|
>Configure the optional count parameter to sync a Smart Card to a challenge.
|
|
A count value of 0 indicates the HOTP value is to be calculated with the
|
|
current stored count.</P
|
|
></DD
|
|
><DT
|
|
>-d, --debug=<TT
|
|
CLASS="REPLACEABLE"
|
|
><I
|
|
> debug_level</I
|
|
></TT
|
|
></DT
|
|
><DD
|
|
><P
|
|
>Set debug level.</P
|
|
></DD
|
|
><DT
|
|
>-h, --help</DT
|
|
><DD
|
|
><P
|
|
>Help.</P
|
|
></DD
|
|
><DT
|
|
>-i, --sc-index=<TT
|
|
CLASS="REPLACEABLE"
|
|
><I
|
|
> index</I
|
|
></TT
|
|
></DT
|
|
><DD
|
|
><P
|
|
>Set the 8 bit index. The Smart Card contains numerically indexed records
|
|
for each host system. Use the -l option to list hostnames associated with
|
|
the index. The default index is 0.</P
|
|
></DD
|
|
><DT
|
|
>-l, --list-readers</DT
|
|
><DD
|
|
><P
|
|
>List SC Readers</P
|
|
></DD
|
|
><DT
|
|
>-L, --sc-list-hostnames</DT
|
|
><DD
|
|
><P
|
|
>List host systems configured on the Smart Card. The index is used with the -i option.</P
|
|
></DD
|
|
><DT
|
|
>-p, --sc-reset-pin</DT
|
|
><DD
|
|
><P
|
|
>Set new PIN.</P
|
|
></DD
|
|
><DT
|
|
>-r, --reader=<TT
|
|
CLASS="REPLACEABLE"
|
|
><I
|
|
> reader</I
|
|
></TT
|
|
></DT
|
|
><DD
|
|
><P
|
|
>Set Smart Card reader. Use -l to list available readers. A reader
|
|
is defined as class:reader:[<SPAN
|
|
CLASS="OPTIONAL"
|
|
>option</SPAN
|
|
>]. PCSC and embedded
|
|
are the two available classes. The embedded class contains the acr30s driver
|
|
which is specified as embedded:acr30s:[<SPAN
|
|
CLASS="OPTIONAL"
|
|
>serial_port</SPAN
|
|
>].
|
|
If pcscd is running the first PC/SC reader will be the default followed by
|
|
the embedded acr30s driver. Use PCSC: for the first available PC/SC
|
|
reader. Use embedded:acr30s:/dev/cuaU0 for the embedded acr30s driver
|
|
with serial port /dev/cuaU0.</P
|
|
></DD
|
|
><DT
|
|
>-v, --sc-version=<TT
|
|
CLASS="REPLACEABLE"
|
|
><I
|
|
> card_api_version</I
|
|
></TT
|
|
></DT
|
|
><DD
|
|
><P
|
|
>Set the Smart Card API version. The binary API between the terminal
|
|
and Smart Card changed between version 2 and 3. See command mode notes
|
|
above. The default version is 3. Configuring version 2 will allow
|
|
maintenance of Smart Card with version 2 firmware.</P
|
|
></DD
|
|
><DT
|
|
>-V, --sc-list-version</DT
|
|
><DD
|
|
><P
|
|
>List the Smart Card firmware version.</P
|
|
></DD
|
|
><DT
|
|
>-1, --sc-get-hostp-v1</DT
|
|
><DD
|
|
><P
|
|
>Use the version 1 GetHOTP command instead of the default GetHOTPHostCount32.
|
|
The latter is not available on firmware revision 1. GetHOTP may be conditionally
|
|
compiled out of newer firmware.</P
|
|
></DD
|
|
><DT
|
|
>--version</DT
|
|
><DD
|
|
><P
|
|
>Display software version.</P
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="REFSECT1"
|
|
><A
|
|
NAME="AEN86"
|
|
></A
|
|
><H2
|
|
>EXAMPLES</H2
|
|
><DIV
|
|
CLASS="INFORMALEXAMPLE"
|
|
><P
|
|
></P
|
|
><A
|
|
NAME="AEN88"
|
|
></A
|
|
><P
|
|
>Generate a HOTP for the first system on the first PCSC reader found.</P
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
><B
|
|
CLASS="COMMAND"
|
|
>otp-sct -r PCSC:</B
|
|
>
|
|
|
|
<SAMP
|
|
CLASS="COMPUTEROUTPUT"
|
|
>Enter PIN: 12345
|
|
HOTP: dev1.eng 2A5AB4B78D</SAMP
|
|
> </PRE
|
|
><P
|
|
></P
|
|
></DIV
|
|
><DIV
|
|
CLASS="INFORMALEXAMPLE"
|
|
><P
|
|
></P
|
|
><A
|
|
NAME="AEN93"
|
|
></A
|
|
><P
|
|
>List systems configured on Smart Card in default reader. Generate HOTP
|
|
for dev3.eng with count 32.</P
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
><B
|
|
CLASS="COMMAND"
|
|
>otp-sct -L</B
|
|
>
|
|
|
|
<SAMP
|
|
CLASS="COMPUTEROUTPUT"
|
|
>Enter PIN: 12345
|
|
00:dev1.eng
|
|
01:dev2.eng
|
|
02:dev3.eng
|
|
03:vpn1.eng</SAMP
|
|
>
|
|
|
|
<B
|
|
CLASS="COMMAND"
|
|
>otp-sct -i 2 -c 32</B
|
|
>
|
|
|
|
<SAMP
|
|
CLASS="COMPUTEROUTPUT"
|
|
>Enter PIN: 12345
|
|
HOTP: dev3.eng 2A9BE3F142</SAMP
|
|
> </PRE
|
|
><P
|
|
></P
|
|
></DIV
|
|
><P
|
|
>Note that hosts with the READERKEY flag set will not be displayed.
|
|
<B
|
|
CLASS="COMMAND"
|
|
>otp-sct</B
|
|
> can not set the reader key.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="REFSECT1"
|
|
><A
|
|
NAME="AEN102"
|
|
></A
|
|
><H2
|
|
>AUTHOR</H2
|
|
><P
|
|
>Mark Fullmer
|
|
<CODE
|
|
CLASS="EMAIL"
|
|
><<A
|
|
HREF="mailto:maf@splintered.net"
|
|
>maf@splintered.net</A
|
|
>></CODE
|
|
></P
|
|
></DIV
|
|
><DIV
|
|
CLASS="REFSECT1"
|
|
><A
|
|
NAME="AEN109"
|
|
></A
|
|
><H2
|
|
>SEE ALSO</H2
|
|
><P
|
|
><SPAN
|
|
CLASS="APPLICATION"
|
|
>otp-sca</SPAN
|
|
>(1)
|
|
<SPAN
|
|
CLASS="APPLICATION"
|
|
>otp-control</SPAN
|
|
>(1)
|
|
<SPAN
|
|
CLASS="APPLICATION"
|
|
>pam_otp</SPAN
|
|
>(1)
|
|
<SPAN
|
|
CLASS="APPLICATION"
|
|
>htsoft-downloader</SPAN
|
|
>(1)
|
|
<SPAN
|
|
CLASS="APPLICATION"
|
|
>otp-ov-plugin</SPAN
|
|
>(1)
|
|
<SPAN
|
|
CLASS="APPLICATION"
|
|
>bcload</SPAN
|
|
>(1)
|
|
<SPAN
|
|
CLASS="APPLICATION"
|
|
>urd</SPAN
|
|
>(1)
|
|
<SPAN
|
|
CLASS="HARDWARE"
|
|
>spyrus-par2</SPAN
|
|
>(7)</P
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |