Skip to content

Instantly share code, notes, and snippets.

@nicolerenee
Created November 23, 2017 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolerenee/af15ba140cd81a10b7b0235070abc9e1 to your computer and use it in GitHub Desktop.
Save nicolerenee/af15ba140cd81a10b7b0235070abc9e1 to your computer and use it in GitHub Desktop.
Script I use to setup my yubikeys
# Yubikey setup
# Disable standard yubikey mode. I only use U2F & GPG. This stops accidental touches from typing a bunch of stuff too.
ykman mode u+c
ykman openpgp touch --admin-pin 12345678 -f sig on
ykman openpgp touch --admin-pin 12345678 -f enc on
ykman openpgp touch --admin-pin 12345678 -f aut on
gpg2 --card-edit
#https://developers.yubico.com/PGP/Card_edit.html
#https://developers.yubico.com/PGP/Importing_keys.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment