Created
February 22, 2015 20:05
-
-
Save michiwend/bc5248c6bbb4fa301875 to your computer and use it in GitHub Desktop.
Gemalto smartcard with GnuPG under Arch Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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