PIV-TOOL(1) | OpenSC Tools | PIV-TOOL(1) |
NAME¶
piv-tool - smart card utility for HSPD-12 PIV cards
SYNOPSIS¶
piv-tool [OPTIONS]
¶
The piv-tool utility can be used from the command line to perform miscellaneous smart card operations on a HSPD-12 PIV smart card as defined in NIST 800-73-3. It is intended for use with test cards only. It can be used to load objects, and generate key pairs, as well as send arbitrary APDU commands to a card after having authenticated to the card using the card key provided by the card vendor.
OPTIONS¶
--serial
--name, -n
--admin argument, -A argument
{A|M}:ref:alg
is required, were A uses "EXTERNAL AUTHENTICATION" and M uses "MUTUAL AUTHENTICATION". ref is normally 9B, and alg is 03 for 3DES. The key is provided by the card vendor, and the environment variable PIV_EXT_AUTH_KEY must point to a text file containing the key in the format: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
--genkey argument, -G argument
ref:alg
is required, where ref is 9A, 9C, 9D or 9E and alg is 06, 07, 11 or 14 for RSA 1024, RSA 2048, ECC 256 or ECC 384 respectively.
--object ContainerID, -O ContainerID
--cert ref, -C ref
--compresscert ref, -Z ref
--out file, -o file
--in file, -i file
--key-slots-discovery file
--send-apdu apdu, -s apdu
--reader num, -r num
--card-driver driver, -c driver
--wait, -w
--verbose, -v
SEE ALSO¶
AUTHORS¶
piv-tool was written by Douglas E. Engert <deengert@gmail.com>.
12/15/2020 | opensc |