Section: OpenSC Tools (1)
opensc-tool - generic smart card utility
utility can be used from the command line to perform miscellaneous smart card operations such as getting the card ATR or sending arbitrary APDU commands to a card.
Print the OpenSC package release version.
Print the Answer To Reset (ATR) of the card. Output is in hex byte format
--card-driver driver, -c driver
Use the given card driver. The default is auto-detected.
Lists algorithms supported by card
Print information about OpenSC, such as version and enabled components.
List all installed card drivers.
Recursively list all files stored on card.
List all configured readers.
Print the name of the inserted card (driver).
--get-conf-entry conf, -G conf
Get configuration key, format: section:name:key
--set-conf-entry conf, -S conf
Set configuration key, format: section:name:key:value
--reader arg, -r arg
Number of the reader to use. By default, the first reader with a present card is used. If
is an ATR, the reader with a matching card will be chosen.
Resets the card in reader. The default reset type is
reset is also possible.
--send-apdu apdu, -s apdu
Sends an arbitrary APDU to the card in the format
Print the card serial number (normally the ICCSN). Output is in hex byte format
to be more verbose. Specify this flag several times to enable debug output in the opensc library.
Wait for a card to be inserted.
was written by Juha Yrjölä