Setting Smart Card Pins
In order to protect unauthorized use of smart cards, we can leverage PINs.
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.
Guide
To set the smart card pins you may use the gpg
utility.
-
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.
-
Once done, shut down the computer