1OPENSC-EXPLORER(1) OpenSC tools OPENSC-EXPLORER(1)
2
3
4
6 opensc-explorer - generic interactive utility for accessing smart card
7 and similar security token functions
8
10 opensc-explorer [OPTIONS]
11
13 The opensc-explorer utility can be used interactively to perform
14 miscellaneous operations such as exploring the contents of or sending
15 arbitrary APDU commands to a smart card or similar security token.
16
18 The following are the command-line options for opensc-explorer. There
19 are additional interactive commands available once it is running.
20
21 --reader num, -r num
22 Use the given reader number. The default is 0, the first reader in
23 the system.
24
25 --card-driver driver, -c driver
26 Use the given card driver. The default is auto-detected.
27
28 --verbose, -v
29 Causes opensc-explorer to be more verbose. Specify this flag
30 several times to enable debug output in the opensc library.
31
33 The following commands are supported at the opensc-explorer interactive
34 prompt.
35
36 ls
37 list all files in the current DF
38
39 cd file-id
40 change to another DF specified by file-id
41
42 cat
43 print the contents of the currently selected EF
44
45 info [file-id]
46 display attributes of a file specified by file-id. If file-id is
47 not supplied, the attributes of the current file are printed.
48
49 create file-id size
50 create a new EF. file-id specifies the id number and size is the
51 size of the new file.
52
53 delete file-id
54 remove the EF or DF specified by file-id
55
56 verify key-typekey-id [key]
57 present a PIN or key to the card. Where key-type can be one of CHV,
58 KEY or PRO. key-id is a number representing the key or PIN number.
59 key is the key or PIN to be verified in hex.
60
61 Example: verify CHV0 31:32:33:34:00:00:00:00
62
63 change CHVid [old-pin] new-pin
64 change a PIN
65
66 Example: change CHV0 31:32:33:34:00:00:00:00 ´secret´
67
68 put file-id [input]
69 copy a local file to the card. The local file is specified by input
70 while the card file is specified by file-id
71
72 get file-id [output]
73 copy an EF to a local file. The local file is specified by output
74 while the card file is specified by file-id.
75
76 mkdir file-id size
77 create a DF. file-id specifies the id number and size is the size
78 of the new file.
79
80 pksign
81 create a public key signature. NOTE: This command is currently not
82 implemented.
83
84 pkdecrypt
85 perform a public key decryption. NOTE: This command is currently
86 not implemented.
87
88 erase
89 erase the card, if the card supports it.
90
91 quit
92 exit the program
93
95 opensc(7), opensc-tool(1)
96
97
98
99opensc 02/16/2010 OPENSC-EXPLORER(1)