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.... Use this option multiple times to send more
66 than one APDU.
67
68 The built-in card drivers may send additional APDUs for detection
69 and initialization. To avoid this behavior, you may additionally
70 specify --card-driver default.
71
72 --serial
73 Print the card serial number (normally the ICCSN). Output is in hex
74 byte format
75
76 --verbose, -v
77 Causes opensc-tool to be more verbose. Specify this flag several
78 times to enable debug output in the opensc library.
79
80 --wait, -w
81 Wait for a card to be inserted.
82
84 opensc-explorer(1)
85
87 opensc-tool was written by Juha Yrjölä <juha.yrjola@iki.fi>.
88
89
90
91opensc 12/02/2022 OPENSC-TOOL(1)