File: netkey-tool.1

package info (click to toggle)
opensc 0.11.1-2etch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 7,284 kB
  • ctags: 7,257
  • sloc: ansic: 69,499; sh: 9,480; xml: 4,191; makefile: 346; lex: 92; perl: 25
file content (116 lines) | stat: -rw-r--r-- 4,914 bytes parent folder | download | duplicates (2)
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
.\"Generated by db2man.xsl. Don't modify this, modify the source.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "NETKEY-TOOL" 1 "" "" "OpenSC"
.SH NAME
netkey-tool \- administrative utility for Netkey E4 cards
.SH "SYNOPSIS"

.PP
\fBnetkey\-tool\fR [OPTIONS] [COMMAND]

.SH "DESCRIPTION"

.PP
The \fBnetkey\-tool\fR 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\&.

.SH "OPTIONS"

.PP
 

.TP
\fB\-\-help\fR, \fB\-h\fR
Displays a short help message\&.

.TP
\fB\-\-reader\fR number, \fB\-r\fR number
Use smart card in specified reader\&. Default is reader 0\&.

.TP
\fB\-v\fR
Causes \fBnetkey\-tool\fR to be more verbose\&. This options may be specified multiple times to increase verbosity\&.

.TP
\fB\-\-pin\fR pin\-value, \fB\-p\fR pin\-value
Specifies the current value of the global PIN\&.

.TP
\fB\-\-puk\fR pin\-value, \fB\-u\fR pin\-value
Specifies the current value of the global PUK\&.

.TP
\fB\-\-pin0\fR pin\-value, \fB\-0\fR pin\-value
Specifies the current value of the local PIN0 (aka local PIN)\&.

.TP
\fB\-\-pin1\fR pin\-value, \fB\-1\fR pin\-value
Specifies the current value of the local PIN1 (aka local PUK)\&.
 

.SH "PIN FORMAT"

.PP
With the \fB\-p\fR, \fB\-u\fR, \fB\-0\fR or the \fB\-1\fR 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 consists of exacly 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\&.

.SH "COMMANDS"

.PP
When used without any options or commands, \fBnetkey\-tool\fR 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 \fBnetkey\-tool\fR)\&. In particular the tries\-left counters of the pins are investigated without doing actual pin\-verifications\&.

.PP
If you specify the global PIN via the \fB\-\-pin\fR option, \fBnetkey\-tool\fR will also display the initial value of the cards global PUK\&. If your global PUK was changed \fBnetkey\-tool\fR will still diplay 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\&.

.PP
For most of the commands that \fBnetkey\-tool\fR can execute, you have to specify one pin\&. One notable exeption is the \fBnullpin\fR command, but this command can only be executed once in the lifetime of a NetKey E4 card\&.

.PP
 

.TP
\fBunblock\fR { \fBpin\fR | \fBpin0\fR | \fBpin1\fR }
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, \fBnetkey\-tool\fR will tell you which one is needed\&.

.TP
\fBchange\fR { \fBpin\fR | \fBpuk\fR | \fBpin0\fR | \fBpin1\fR } new\-pin
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, \fBnetkey\-tool\fR will tell you which one is needed\&.

.TP
\fBnullpin\fR initial\-pin
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 succesfull nullpin\-command \fBnetkey\-tool\fR will display your cards initial PUK\-value\&.

.TP
\fBcert\fR number filename
This command will read one of your cards certificates (as specified by \fBnumber\fR) and save this certificate into file \fBfilename\fR in PEM\-format\&. Certificates on a NetKey E4 card are readable without a pin, so you don't have to specify one\&.

.TP
\fBcert\fR filename number
This command will read the first PEM\-encoded certificate from file \fBfilename\fR and store this into your smart cards certificate file \fBnumber\fR\&. Some of your smart cards certificate files might be readonly, so this will not work with all values of \fBnumber\fR\&. 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, \fBnetkey\-tool\fR will tell you which one is needed\&.
 

.SH "SEE ALSO"

.PP
opensc(7), opensc\-explorer(1)

.SH "AUTHORS"

.PP
\fBnetkey\-tool\fR was written by Peter Koch <pk_opensc@web\&.de>\&.