OPENSC-TOOL(1)

    .SH "NAME" opensc-tool - generic smart card utility
    .SH "SYNOPSIS"
        .HP u
            opensc-tool
             [OPTIONS]

    .SH "DESCRIPTION"

        .PP The opensc-tool 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.

    .SH "OPTIONS"

        .PP
                .PP --version

                        Print the OpenSC package release version.
                    .RE
                    .PP --atr, -a

                            Print the Answer To Reset (ATR) of the card. Output is in hex byte format
                        .RE
                        .PP --card-driver driver, -c driver

                                Use the given card driver. The default is to auto-detect the correct card driver. The literal value ? lists all available card drivers.
                            .RE
                            .PP --list-algorithms,

                                    Lists algorithms supported by card
                                .RE
                                .PP --info, -i

                                        Print information about OpenSC, such as version and enabled components.
                                    .RE
                                    .PP --list-drivers, -D

                                            List all installed card drivers.
                                        .RE
                                        .PP --list-files, -f

                                                Recursively list all files stored on card.
                                            .RE
                                            .PP --list-readers, -l

                                                    List all configured readers.
                                                .RE
                                                .PP --name, -n

                                                        Print the name of the inserted card (driver).
                                                    .RE
                                                    .PP --get-conf-entry conf, -G conf

                                                            Get configuration key, format: section:name:key
                                                        .RE
                                                        .PP --set-conf-entry conf, -S conf

                                                                Set configuration key, format: section:name:key:value
                                                            .RE
                                                            .PP --reader arg, -r arg

                                                                        Number of the reader to use. By default, the first reader with a present card is used. If arg is an ATR, the reader with a matching card will be chosen.

                                                                .RE
                                                                .PP --reset [type],

                                                                        Resets the card in reader. The default reset type is cold, but warm reset is also possible.
                                                                    .RE
                                                                    .PP --send-apdu apdu, -s apdu

                                                                                Sends an arbitrary APDU to the card in the format AA:BB:CC:DD:EE:FF.... Use this option multiple times to send more than one APDU.

                                                                                The built-in card drivers may send additional APDUs for detection and initialization. To avoid this behavior, you may additionally specify --card-driver default.

                                                                        .RE
                                                                        .PP --serial

                                                                                Print the card serial number (normally the ICCSN). Output is in hex byte format
                                                                            .RE
                                                                            .PP --verbose, -v

                                                                                    Causes opensc-tool to be more verbose. Specify this flag several times to enable debug output in the opensc library.
                                                                                .RE
                                                                                .PP --wait, -w

                                                                                        Wait for a card to be inserted.
                                                                                    .RE

                                                                        .SH "SEE ALSO"

                                                                            .PP opensc-explorer(1)

                                                                        .SH "AUTHORS"

                                                                            .PP opensc-tool was written by Juha Yrjölä <juha.yrjola@iki.fi>.