File: netkey-tool.1.xml

package info (click to toggle)
opensc 0.26.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,420 kB
  • sloc: ansic: 178,823; xml: 6,327; sh: 2,115; makefile: 1,023; cpp: 304; lex: 92
file content (206 lines) | stat: -rw-r--r-- 9,061 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?xml version="1.0" encoding="UTF-8"?>
<refentry id="netkey-tool">
  <refmeta>
    <refentrytitle>netkey-tool</refentrytitle>
    <manvolnum>1</manvolnum>
    <refmiscinfo class="productname">OpenSC</refmiscinfo>
    <refmiscinfo class="manual">OpenSC Tools</refmiscinfo>
    <refmiscinfo class="source">opensc</refmiscinfo>
  </refmeta>

  <refnamediv>
    <refname>netkey-tool</refname>
    <refpurpose>administrative utility for Netkey E4 cards</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <cmdsynopsis>
      <command>netkey-tool</command>
      <arg choice="opt"><replaceable class="option">OPTIONS</replaceable></arg>
      <arg choice="opt"><replaceable class="parameter">COMMAND</replaceable></arg>
    </cmdsynopsis>
  </refsynopsisdiv>

  <refsect1>
    <title>Description</title>
    <para>The <command>netkey-tool</command> utility can be used from the
    command line to perform some smart card operations with NetKey E4 cards
    that cannot be done easily with other OpenSC-tools, such as changing local
    PINs, storing certificates into empty NetKey E4 cert-files or displaying
    the initial PUK-value.</para>
  </refsect1>

  <refsect1>
    <title>Options</title>
    <para>
      <variablelist>
        <varlistentry>
          <term>
            <option>--help</option>,
            <option>-h</option>
          </term>
          <listitem><para>Displays a short help message.</para></listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--pin</option> <replaceable>pin</replaceable>,
            <option>-p</option> <replaceable>pin</replaceable>
          </term>
          <listitem><para>Specifies the current value of the global PIN.</para></listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--puk</option> <replaceable>pin</replaceable>,
            <option>-u</option> <replaceable>pin</replaceable>
          </term>
          <listitem><para>Specifies the current value of the global PUK.</para></listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--pin0</option> <replaceable>pin</replaceable>,
            <option>-0</option> <replaceable>pin</replaceable>
          </term>
          <listitem><para>Specifies the current value of the local PIN0 (aka local PIN).</para></listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--pin1</option> <replaceable>pin</replaceable>,
            <option>-1</option> <replaceable>pin</replaceable>
          </term>
          <listitem><para>Specifies the current value of the local PIN1 (aka local PUK).</para></listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--reader</option> <replaceable>arg</replaceable>,
            <option>-r</option> <replaceable>arg</replaceable>
          </term>
          <listitem>
            <para>
              Number of the reader to use. By default, the first
              reader with a present card is used. If
              <replaceable>arg</replaceable> is an ATR, the
              reader with a matching card will be chosen.
            </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-v</option>
          </term>
          <listitem><para>Causes <command>netkey-tool</command> to be more verbose. This
          options may be specified multiple times to increase verbosity.</para></listitem>
        </varlistentry>
      </variablelist>
    </para>
  </refsect1>

  <refsect1>
    <title>PIN format</title>
    <para>With the <option>-p</option>, <option>-u</option>, <option>-0</option> or the <option>-1</option>
    one of the cards pins may be specified. You may use plain ascii-strings (i.e. 123456) or a hex-string
    (i.e. 31:32:33:34:35:36). A hex-string must consist of exactly n 2-digit hexnumbers separated by n-1 colons.
    Otherwise it will be interpreted as an ascii string. For example :12:34: and 1:2:3:4 are both pins of
    length 7, while 12:34 and 01:02:03:04 are pins of length 2 and 4.</para>
  </refsect1>

  <refsect1>
    <title>Commands</title>
    <para>When used without any options or commands, <command>netkey-tool</command> will
    display information about the smart cards pins and certificates. This will not change
    your card in any aspect (assumed there are no bugs in <command>netkey-tool</command>).
    In particular the tries-left counters of the pins are investigated without doing
    actual pin-verifications.</para>

    <para>If you specify the global PIN via the <option>--pin</option> option,
    <command>netkey-tool</command> will also display the initial value of the cards
    global PUK. If your global PUK was changed <command>netkey-tool</command> will still
    display its initial value. There's no way to recover a lost global PUK once it was changed.
    There's also no way to display the initial value of your global PUK without knowing the
    current value of your global PIN. </para>

    <para>For most of the commands that <command>netkey-tool</command> can execute, you have
    to specify one pin. One notable exception is the <command>nullpin</command> command, but
    this command can only be executed once in the lifetime of a NetKey E4 card.</para>

    <para>
      <variablelist>
        <varlistentry>
          <term>
            <command>cert</command> <replaceable>number</replaceable> <replaceable>filename</replaceable>
          </term>
          <listitem><para>This command will read one of your cards certificates (as specified by
          <replaceable>number</replaceable>) and save this certificate into file <replaceable>filename</replaceable>
          in PEM-format.  Certificates on a NetKey E4 card are readable without a pin, so you don't
          have to specify one.</para></listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <command>cert</command> <replaceable>filename</replaceable> <replaceable>number</replaceable>
          </term>
          <listitem><para>This command will read the first PEM-encoded certificate from file
          <replaceable>filename</replaceable> and store this into your smart cards certificate file
          <replaceable>number</replaceable>. Some of your smart cards certificate files might be readonly, so
          this will not work with all values of <replaceable>number</replaceable>. If a certificate file is
          writable you must specify a pin in order to change it. If you try to use this command
          without specifying a pin, <command>netkey-tool</command> will tell you which one is
          needed.</para></listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <command>change</command>
            <group choice="req">
              <arg choice="plain">pin</arg>
              <arg choice="plain">puk</arg>
              <arg choice="plain">pin0</arg>
              <arg choice="plain">pin1</arg>
             </group>
            <replaceable>new-pin</replaceable>
          </term>
          <listitem><para>This changes the value of the specified pin to the given new value.
          You must specify either the current value of the pin or another pin to be able to do
          this and if you don't specify a correct one, <command>netkey-tool</command> will tell
          you which one is needed.</para></listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <command>nullpin</command> <replaceable>initial-pin</replaceable>
          </term>
          <listitem><para>This command can be executed only if the global PIN of your card is
          in nullpin-state. There's no way to return back to nullpin-state once you have changed
          your global PIN. You don't need a pin to execute the nullpin-command. After a successful
          nullpin-command <command>netkey-tool</command> will display your cards initial
          PUK-value.</para></listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <command>unblock</command>
            <group choice="req">
              <arg choice="plain">pin</arg>
              <arg choice="plain">pin0</arg>
              <arg choice="plain">pin1</arg>
             </group>
          </term>
          <listitem><para>This unblocks the specified pin. You must specify another pin
          to be able to do this and if you don't specify a correct one,
          <command>netkey-tool</command> will tell you which one is needed.</para></listitem>
        </varlistentry>
      </variablelist>
    </para>
  </refsect1>

  <refsect1>
    <title>See also</title>
    <para>
      <citerefentry>
        <refentrytitle>opensc-explorer</refentrytitle>
        <manvolnum>1</manvolnum>
      </citerefentry>
    </para>
  </refsect1>

  <refsect1>
    <title>Authors</title>
    <para><command>netkey-tool</command> was written by
    Peter Koch <email>pk_opensc@web.de</email>.</para>
  </refsect1>
</refentry>