<?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=2498" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2016-12-05T17:40:06+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2498</id>
<entry>
<author><name><![CDATA[dasralph]]></name></author>
<updated>2016-12-05T17:40:06+01:00</updated>
<published>2016-12-05T17:40:06+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2498&amp;p=9202#p9202</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2498&amp;p=9202#p9202"/>
<title type="html"><![CDATA[[SOLVED] - GnuPGP an macOS SIerra]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2498&amp;p=9202#p9202"><![CDATA[
Hello,<br /><br /><br />I received a new YubiKey 4 and try to set it up... but it fails <img src="https://forum.yubico.com/images/smilies/icon_e_sad.gif" alt=":-(" title="Sad" /><br /><br />For now I want to use it to sign my git commits. I still have my pub/private keys so I imported them on my YubiKey (last part of <!-- m --><a class="postlink" href="https://www.yubico.com/support/knowledge-base/categories/articles/use-yubikey-openpgp/#generatelocal">https://www.yubico.com/support/knowledg ... eratelocal</a><!-- m -->) <br /><br />When I call <div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg --card-status</div> I get this output:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Application ID ...: D2760001240102010006050022860000<br />Version ..........: 2.1<br />Manufacturer .....: Yubico<br />Serial number ....: 05002286<br />Name of cardholder: &#91;not set&#93;<br />Language prefs ...: &#91;not set&#93;<br />Sex ..............: unspecified<br />URL of public key : &#91;not set&#93;<br />Login data .......: &#91;not set&#93;<br />Signature PIN ....: not forced<br />Key attributes ...: 4096R 4096R 2048R<br />Max. PIN lengths .: 127 127 127<br />PIN retry counter : 3 0 3<br />Signature counter : 1<br />Signature key ....: CEE3 7AE9 07BE 98DF CD5A  E69C F131 4A8E 421F 9B78<br />      created ....: 2013-09-06 07:08:49<br />Encryption key....: 71B5 26B3 C235 5CF2 41C5  4F35 D556 2397 D30A 19FE<br />      created ....: 2013-09-06 07:32:42<br />Authentication key: &#91;none&#93;<br />General key info..: pub  4096R/421F9B78 2013-09-06 Ralph Bergmann &lt;ralph@dasralph.de&gt;<br />sec&gt;  4096R/421F9B78  created: 2013-09-06  expires: 2021-09-06<br />                      card-no: 0006 05002286<br />ssb#  4096R/039F3C55  created: 2013-09-06  expires: 2021-09-06<br />ssb&gt;  4096R/D30A19FE  created: 2013-09-06  expires: 2021-09-06<br />                      card-no: 0006 05002286<br />ssb#  4096R/B179B044  created: 2013-09-06  expires: 2021-09-06<br /></div><br /><br />But when I try to commit something with <div class="codetitle"><b>Code:</b></div><div class="codecontent">git commit -a -S -m &quot;signed commit&quot;</div> I get this error message<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg: secret key parts are not available<br />gpg: skipped &quot;421F9B78&quot;: Unusable secret key<br />gpg: signing failed: Unusable secret key<br />error: gpg failed to sign the data<br />fatal: failed to write commit object<br /></div><br /><br />What do I have to do to get it working?<br /><br />I found this <!-- m --><a class="postlink" href="https://gpgtools.tenderapp.com/kb/gpg-keychain-faq/gpg-keychain-not-showing-key-from-smart-card">https://gpgtools.tenderapp.com/kb/gpg-k ... smart-card</a><!-- m --><br />Do I need to call fetch and set up a url?<br /><br />Do I need to install this Java Card OpenPGP Card (<!-- m --><a class="postlink" href="https://developers.yubico.com/ykneo-openpgp/">https://developers.yubico.com/ykneo-openpgp/</a><!-- m -->)?<br /><br /><br /><strong>EDIT</strong><br /><br />I created new signatures directly on the key and now it works<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4568">dasralph</a> — Mon Dec 05, 2016 5:40 pm</p><hr />
]]></content>
</entry>
</feed>