keycard-cli/_shell-commands-examples/07-sign-message.sh

13 lines
433 B
Bash
Raw Normal View History

2019-10-08 14:16:10 +00:00
# select the keycard applet
keycard-select
# set the secrets we had from the initialization
keycard-set-secrets 123456 123456789012 KeycardTest
# pairing is usually done once per device
keycard-pair
keycard-open-secure-channel
keycard-verify-pin {{ session_pin }}
# sign a message
keycard-sign-message hello
# we unpair the current device so that we don't use one of the 5 available slots.
keycard-unpair {{ session_pairing_index }}