2005-07-20 00:43:38 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<refentry id="opensc-tool">
|
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>opensc-tool</refentrytitle>
|
|
|
|
<manvolnum>1</manvolnum>
|
|
|
|
<refmiscinfo>opensc</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
|
|
|
<refname>opensc-tool</refname>
|
|
|
|
<refpurpose>generic smart card utility</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Synopsis</title>
|
|
|
|
<para>
|
|
|
|
<command>opensc-tool</command> [OPTIONS]
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<para>
|
|
|
|
The <command>opensc-tool</command> utility can be used from the command line to perform
|
|
|
|
miscellaneous smart card operations such as getting the card ATR or
|
|
|
|
sending arbitrary APDU commands to a card.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Options</title>
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
2009-11-13 14:51:32 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>--info, -i</option></term>
|
|
|
|
<listitem><para>Print information about OpenSC, such as version and enabled components</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-07-20 00:43:38 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>--atr, -a</option></term>
|
|
|
|
<listitem><para>Print the Answer To Reset (ATR) of the card,
|
|
|
|
output is in hex byte format</para></listitem>
|
|
|
|
</varlistentry>
|
2009-11-13 14:51:32 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>--name, -n</option></term>
|
|
|
|
<listitem><para>Print the name of the inserted card (driver)</para></listitem>
|
|
|
|
</varlistentry>
|
2005-07-20 00:43:38 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>--serial</option></term>
|
|
|
|
<listitem><para>Print the card serial number (normally the ICCSN), output is in hex byte
|
|
|
|
format</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>--send-apdu</option> apdu, <option>-s</option> apdu</term>
|
|
|
|
<listitem><para>Sends an arbitrary APDU to the card in the format AA:BB:CC:DD:EE:FF...</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>--list-files, -f</option></term>
|
|
|
|
<listitem><para>Recursively lists all files stored on card</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>--list-readers, -l</option></term>
|
|
|
|
<listitem><para>Lists all configured readers</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>--list-drivers, -D</option></term>
|
|
|
|
<listitem><para>Lists all installed card drivers</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>--reader</option> num, <option>-r</option> num</term>
|
|
|
|
<listitem><para>Use the given reader number. The default is 0, the first reader
|
|
|
|
in the system.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>--card-driver</option> driver, <option>-c</option> driver</term>
|
|
|
|
<listitem><para>Use the given card driver. The default is auto-detected.</para></listitem>
|
|
|
|
</varlistentry>
|
2009-11-13 14:51:32 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>--wait, -w</option></term>
|
|
|
|
<listitem><para>Wait for a card to be inserted</para></listitem>
|
|
|
|
</varlistentry>
|
2005-07-20 00:43:38 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>--verbose, -v</option></term>
|
|
|
|
<listitem><para>Causes <command>opensc-tool</command> to be more verbose. Specify this flag several times
|
|
|
|
to enable debug output in the opensc library.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See also</title>
|
2011-04-29 12:15:54 +00:00
|
|
|
<para>opensc-explorer(1)</para>
|
2005-07-20 00:43:38 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
</refentry>
|