#Check that the Yubikey is detected by gpg>>> gpg --card-editReader ...........: Yubico YubiKey OTP FIDO CCID[...]#Setup the admin PIN from the default 12345678gpg/card> admingpg/card> kdf-setupgpg/card> admingpg/card> passwdgpg/card>3#Setup the user PIN from the default 123456gpg/card> passwdgpg/card>1#Setup Keys Algorithmsgpg/card> key-attr#Select # (2) ECC# (1) Curve 25519 default# Enter your admin password# (2) ECC# (1) Curve 25519 default# Enter your admin password# (2) ECC# (1) Curve 25519 default# Enter your admin password#Setup Keygpg/card> generate# Select No off-card backup# Set Key to expire in X Years# Same email as for git commits# Use the Admin Pin
Setup Git:
#Setup Policy on the Keysykman openpgp keys set-touch enc Fixedykman openpgp keys set-touch aut Fixedykman openpgp keys set-touch sig Fixed#Setup Git>>> gpg --list-keyspub ed25519 2025-03-05 [SC][expires: 2026-03-05]B234A36199ED837092E998A6D435C5C048427353gpg --armor --export B234A36199ED837092E998A6D435C5C048427353 > gpg.pub#Add gpg.pub to githubgit config --global user.signingkey 01BECFA3C1AE191D15git config --global commit.gpgsign true