<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=35&amp;t=2522" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2017-01-15T21:55:26+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2522</id>
<entry>
<author><name><![CDATA[irgendwer]]></name></author>
<updated>2017-01-15T21:55:05+01:00</updated>
<published>2017-01-15T21:55:05+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2522&amp;p=9271#p9271</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2522&amp;p=9271#p9271"/>
<title type="html"><![CDATA[Re: Yubikey 4 and git commit signing]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2522&amp;p=9271#p9271"><![CDATA[
I, finally solved this issue.<br />I'm running gpg 2.1.11 and hence the correct program to call ist gpg2 instead of gpg. For the ease of use I have an alias in my .bashrc, such that I can use gpg. However, git search for the program in the $PATH and hence does not care about the set alias. In order to make git work, I had to configure git to use gpg2 instead. This could - once you know, that you have to do it - easily be done:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">git config --global gpg.pgrogram /usr/bin/gpg2 </div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4618">irgendwer</a> — Sun Jan 15, 2017 9:55 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[irgendwer]]></name></author>
<updated>2017-01-15T21:55:26+01:00</updated>
<published>2017-01-14T19:03:13+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2522&amp;p=9270#p9270</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2522&amp;p=9270#p9270"/>
<title type="html"><![CDATA[[solved] Yubikey 4 and git commit signing]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2522&amp;p=9270#p9270"><![CDATA[
Hi,<br /><br />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:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg: signing failed: private key is not available</div><br /><br />If I use the same command on the shell directly, everything works fine:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg -basu &lt;keyid&gt;</div><br /><br />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. <br /><br />Has anyone already configured git to use a yubikey to sign commits and how has it been done?<br /><br />Cheers.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4618">irgendwer</a> — Sat Jan 14, 2017 7:03 pm</p><hr />
]]></content>
</entry>
</feed>