PM3 Commands Reference (Iceman Firmware):

Main Help


Current command:
piv authsign --help


Send a nonce and ask the PIV card to sign it

usage:
    piv authsign [-hskatw] [--aid <hex>] --nonce <hex> [--slot <dec id>] [--alg <dec>]

options:
    -h, --help                     This help
    -s, -S, --select               Activate field and select applet
    -k, -K, --keep                 Keep field for next command
    -a, -A, --apdu                 Show APDU requests and responses
    -t, -T, --tlv                  TLV decode results
    -w, -W, --wired                Send data via contact (iso7816) interface. (def: Contactless interface)
    --aid <hex>                    Applet ID to select. By default A0000003080000100 will be used
    --nonce <hex>                  Nonce to sign.
    --slot <dec id>                Slot number. Default will be 0x9E (card auth cert).
    --alg <dec>                    Algorithm to use to sign. Example values: 06=RSA-1024, 07=RSA-2048, 11=ECC-P256 (default), 14=ECC-P384

examples/notes:
    piv authsign -sk                   -> select card, select applet, sign a NULL nonce