Hi,
I want to use my yubikey 4 to sign git commits. I have successfully set-up a master-key (which is completely offline) and three subkeys (one for signing, authentication and encryption each) on my yubikey. Then I configured GIT to use my signing-key and to sign every commit. However, each time I try to do so, I receive the following error message:
Code:
gpg: signing failed: private key is not available
If I use the same command on the shell directly, everything works fine:
Code:
gpg -basu <keyid>
the pinentry programs pops up, I can enter my pin and the signature gets created. I assume that the problem is with the gpg-agent's configuration, but I'm not sure.
Has anyone already configured git to use a yubikey to sign commits and how has it been done?
Cheers.