scripts/change_yubikey.sh

7 lines
128 B
Bash
Executable File

#!/bin/bash
killall gpg-agent
rm -rf $HOME/.gnupg/private-keys-v1.d
gpg2 --card-status
gpg-connect-agent updatestartuptty /bye