use already set up gpg smart-card

When you've got an smart-card which is already set-up with your private key and you'd like to use it with gpg, here's how to get gpg to use it:

  1. make sure scdaemon is installed
  2. import your key gpg --import 1234...asc or fetch it from a key-server gpg --recv-key 1234...
  3. connect your smart card to your computer and run gpg --card-status
  4. check if the key is now available gpg --list-secret-keys

written by uniq on 2022-12-13