opensc-explorer1openscopensc-explorer
generic interactive utility for accessing smart card
and similar security token functions
Synopsisopensc-explorer [OPTIONS]
Description
The opensc-explorer utility can be
used interactively to perform miscellaneous operations
such as exploring the contents of or sending arbitrary
APDU commands to a smart card or similar security token.
Options
The following are the command-line options for
opensc-explorer. There are additional
interactive commands available once it is running.
num,
num
Use the given reader number. The default
is 0, the first reader in the system.
driver,
driver
Use the given card driver. The default is
auto-detected.
Causes opensc-explorer to be more
verbose. Specify this flag several times to enable
debug output in the opensc library.
Commands
The following commands are supported at the opensc-explorer
interactive prompt.
list all files in the current DFfile-idchange to another DF specified by file-idprint the contents of the currently selected EF [file-id]display attributes of a file specified by file-id.
If file-id is not supplied,
the attributes of the current file are printed.file-idsizecreate a new EF. file-id specifies the
id number and size is the size of the new file.
file-idremove the EF or DF specified by file-idkey-typekey-id
[key]present a PIN or key to the card. Where key-type
can be one of CHV, KEY or PRO. key-id is a number representing the
key or PIN number. key is the key or PIN to be verified in hex.
Example: verify CHV0 31:32:33:34:00:00:00:00
id [old-pin] new-pinchange a PIN
Example: change CHV0 31:32:33:34:00:00:00:00 'secret'
file-id [input]copy a local file to the card. The local file is specified
by input while the card file is specified by file-idfile-id [output]copy an EF to a local file. The local file is specified
by output while the card file is specified by file-id.
file-idsizecreate a DF. file-id specifies the id number
and size is the size of the new file.create a public key signature. NOTE: This command is currently not implemented.
perform a public key decryption. NOTE: This command is currently not implemented.
erase the card, if the card supports it.exit the programSee alsoopensc(7), opensc-tool(1)