1.3 KiB
Setting Smart Card Pins
In order to protect unauthorized use of smart cards, PINs are leveraged.
There are two pins with different levels of authorization for making changes to the smart card:
-
User PIN
-
Admin PIN
Both PINs support alphanumeric characters and typically need to be at least 6 characters long.
For Operator Keys it is recommended to use the default PINs, while for Location
Keys, PINs are generated by the keyfork
utility and have high entropy.
WARNING Different smart cards have different failure thresholds, but typically after entering the PIN incorrectly 3-10 times, the smart card is permanently locked and can no longer be used.
Guide
To set the smart card pins you may use the gpg
utility. This guide should be
completed in a trusted environment, such as on a airgapped machine running
AirgapOS.
-
Plug the smart card into a computer which has the
gpg
utility intalled -
Use the command
gpg --edit-card
to enter edit mode -
gpg/card>
- Input
admin
, press Enter
- Input
-
Your selection?
- Input 1, press Enter
-
Please enter the PIN:
- Enter old PIN (default is 123456), press Enter
-
New PIN:
- Enter the new PIN, press Enter
-
Repeat this PIN:
- Enter the new PIN, press Enter
-
For the Admin PIN, the steps are the same, except in step 4, input "3", then press Enter.