Skip to content

Instantly share code, notes, and snippets.

@T4cC0re
Forked from michiwend/smartcard.sh
Last active May 1, 2016 20:08
Show Gist options
  • Save T4cC0re/a4fa54a46b0eea1c507d7efee5739c2f to your computer and use it in GitHub Desktop.
Save T4cC0re/a4fa54a46b0eea1c507d7efee5739c2f to your computer and use it in GitHub Desktop.
Gemalto smartcard with GnuPG under Arch Linux
#!/usr/bin/bash
# more info:
# https://wiki.archlinux.org/index.php/GnuPG#Smartcards
SHELL_CONF=~/.bashrc
sudo pacman -S --noconfirm pcsclite libusb-compat
sudo systemctl enable pcscd.service
echo "export SSH_AUTH_SOCK=$HOME/.gnupg/S.gpg-agent.ssh" >> $SHELL_CONF
echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf
echo "pcsc-driver /usr/lib/libpcsclite.so" > ~/.gnupg/scdaemon.conf
echo "card-timeout 5" >> ~/.gnupg/scdaemon.conf
echo "disable-ccid" >> ~/.gnupg/scdaemon.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment