This repository has been archived by the owner on Aug 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
gpg4win
Andrew Savchenko edited this page May 18, 2020
·
2 revisions
- Download from the official website
- Import pubkey, insert smart-card.
- Open
kleopatra
, Tools → Manage Smartcards, ensure yours is present. - Do not close Kleopatra.
- Issue
gpg.exe --card-status
to refresh the SCDaemon. - Press F5 in Kleopatra, assuming pubkey corresponds to private key stored on the card, relevant line will become highlighted with in bold.
- Change trust level of your own certificate to ultimate.
- Open
- Export pubkey from a (sub)key that is allowed to authenticate:
gpg.exe --export-ssh-key ID
- Enable Putty support:
echo "enable-putty-support" >> C:\Users\asv\AppData\Roaming\gnupg\test.conf
- Restart daemon:
gpg-connect-agent KILLAGENT /bye; gpg-agent.exe -v --enable-putty-support
. - Try to login, authenticate card as usual. Should see something like this:
- Configure git to sign commits by default:
git config --global gpg.program "C:\Program Files (x86)\GnuPG\bin\gpg.exe"
git config --global user.signingkey $LONG_KEY_ID
git config --global commit.gpgsign true