1OPENSC-TOOL(1) OpenSC Tools OPENSC-TOOL(1)
2
3
4
6 opensc-tool - generic smart card utility
7
9 opensc-tool [OPTIONS]
10
12 The opensc-tool utility can be used from the command line to perform
13 miscellaneous smart card operations such as getting the card ATR or
14 sending arbitrary APDU commands to a card.
15
17 --version
18 Print the OpenSC package release version.
19
20 --atr, -a
21 Print the Answer To Reset (ATR) of the card. Output is in hex byte
22 format
23
24 --card-driver driver, -c driver
25 Use the given card driver. The default is to auto-detect the
26 correct card driver. The literal value ? lists all available card
27 drivers.
28
29 --list-algorithms,
30 Lists algorithms supported by card
31
32 --info, -i
33 Print information about OpenSC, such as version and enabled
34 components.
35
36 --list-drivers, -D
37 List all installed card drivers.
38
39 --list-files, -f
40 Recursively list all files stored on card.
41
42 --list-readers, -l
43 List all configured readers.
44
45 --name, -n
46 Print the name of the inserted card (driver).
47
48 --get-conf-entry conf, -G conf
49 Get configuration key, format: section:name:key
50
51 --set-conf-entry conf, -S conf
52 Set configuration key, format: section:name:key:value
53
54 --reader arg, -r arg
55 Number of the reader to use. By default, the first reader with a
56 present card is used. If arg is an ATR, the reader with a matching
57 card will be chosen.
58
59 --reset [type],
60 Resets the card in reader. The default reset type is cold, but warm
61 reset is also possible.
62
63 --send-apdu apdu, -s apdu
64 Sends an arbitrary APDU to the card in the format
65 AA:BB:CC:DD:EE:FF....
66
67 --serial
68 Print the card serial number (normally the ICCSN). Output is in hex
69 byte format
70
71 --verbose, -v
72 Causes opensc-tool to be more verbose. Specify this flag several
73 times to enable debug output in the opensc library.
74
75 --wait, -w
76 Wait for a card to be inserted.
77
79 opensc-explorer(1)
80
82 opensc-tool was written by Juha Yrjölä <juha.yrjola@iki.fi>.
83
84
85
86opensc 08/10/2021 OPENSC-TOOL(1)