Skip to content

Instantly share code, notes, and snippets.

@michiwend
Created February 22, 2015 20:05
Show Gist options
  • Save michiwend/bc5248c6bbb4fa301875 to your computer and use it in GitHub Desktop.
Save michiwend/bc5248c6bbb4fa301875 to your computer and use it in GitHub Desktop.
Gemalto smartcard with GnuPG under Arch Linux
#!/usr/bin/sh
# more info:
# https://wiki.archlinux.org/index.php/GnuPG#Smartcards
SHELL_CONF=~/.bashrc
su -C "pacman -S pcsclite libusb-compat"
su -C "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