Skip to content

Instantly share code, notes, and snippets.

@withinboredom
Created November 18, 2017 02:53
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 withinboredom/36bff945264c4249a7ef9e20c5a9528f to your computer and use it in GitHub Desktop.
Save withinboredom/36bff945264c4249a7ef9e20c5a9528f to your computer and use it in GitHub Desktop.
gpg --card-edit
gpg/card> admin
// change the pins (don't forget them)
gpg/card> 3 <12345678 => (factory default admin pin)>
gpg/card> 1 <123456 => (factory default pin)>
gpg/card> q
gpg/card> name
gpg/card> lang (en)
gpg/card> sex
gpg/card> login
gpg/card> quit
gpg --edit-key F2992F4953745E6F
gpg> key 1
gpg> keytocard
1 (signature key)
gpg> key 1
gpg> key 2
gpg> keytocard
2 (encryption key)
gpg> key 2
gpg> key 3
gpg> keytocard
3 (authentication key)
gpg> save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment