Skip to content

Instantly share code, notes, and snippets.

@adamcrosby
Created November 8, 2020 22:22
Show Gist options
  • Save adamcrosby/f136e6e4021a12ca2362ea2464b1b1f6 to your computer and use it in GitHub Desktop.
Save adamcrosby/f136e6e4021a12ca2362ea2464b1b1f6 to your computer and use it in GitHub Desktop.
Yubikey setup quick guide

yubikey setup

gpg --card-status

gpg --card-edit

admin key-attr Set to RSA 4096 for all 3 keys

generate
passwd - > change admin and user PIN

ykman openpgp set-touch enc on
ykman openpgp set-touch aut on
ykman openpgp set-touch sig on

gpgconf —list-dir agent-extra-socket | pbcopy

echo “use-agent” >> ~/.gnupg/gpg.conf

enable-ssh-support  
extra-socket /Users/adam/.gnupg/S.gpg-agent.extra  
pinentry-program /usr/local/bin/pinentry-mac  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment