dnie-tool(1) displays information about DNIe based security tokens


dnie-tool [OPTIONS]


The dnie-tool utility is used to display additional information about DNIe, the Spanish National eID card.


--idesp, -i

Show the DNIe IDESP value.

--data, -d

Show DNIe personal information. Reads and print DNIe number and User Name and SurName

--all, -a

Displays every available information. This command is equivalent to -d -i -s

--serial, -s

Displays DNIe Serial Number

--version, -V

Show DNIe sw version. Displays sofware version for in-card DNIe OS

--pin pin, -p pin

Specify the user pin pin to use. If set to env:VARIABLE, the value of the environment variable VARIABLE is used. The default is do not enter pin

--reader number, -r number

Specify the reader number to use. The default is reader 0.

--driver driver, -c driver

Specify the card driver driver to use. Default is use driver from configuration file, or auto-detect if absent

--wait, -w

Causes dnie-tool to wait for the token to be inserted into reader.

--verbose, -v

Causes dnie-tool to be more verbose. Specify this flag several times to enable debug output in the opensc library.


dnie-tool was written by Juan Antonio Martinez <[email protected]>.