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

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

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2308</id>
<entry>
<author><name><![CDATA[x11]]></name></author>
<updated>2016-05-16T16:27:20+01:00</updated>
<published>2016-05-16T16:27:20+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2308&amp;p=8634#p8634</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2308&amp;p=8634#p8634"/>
<title type="html"><![CDATA[Re: Use same Yubikey with gnupg 2.0 on multiple computers, L]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2308&amp;p=8634#p8634"><![CDATA[
I just solved it.<br />Found this information here <!-- m --><a class="postlink" href="http://www.narf.ssji.net/~shtrom/wiki/tips/openpgpsmartcard">http://www.narf.ssji.net/~shtrom/wiki/t ... psmartcard</a><!-- m --><br />in the paragraph &quot;Using the Card on Multiple Computers&quot;<br />it suggestes:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ gpg2 --card-edit<br />&gt; fetch<br />&gt; quit<br />$ gpg2 --card-status</div><br />and that worked fine for me.<br /><br />In fact, the first part can be omitted, if you have the matching pubkey on your keyring. In that case a <div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg2 --card-status</div> is sufficient.<br />The essential thing is, you have to delete the whole secret key before, only then the stubs get rebuilt:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg2 --delete-secret-key &lt;key-ID&gt;</div><br />Regards,<br />x11<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4325">x11</a> — Mon May 16, 2016 4:27 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[x11]]></name></author>
<updated>2016-05-16T17:26:38+01:00</updated>
<published>2016-05-15T12:03:34+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2308&amp;p=8630#p8630</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2308&amp;p=8630#p8630"/>
<title type="html"><![CDATA[[solved] Use same Yubikey with gnupg 2.0 on multiple PC's.]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2308&amp;p=8630#p8630"><![CDATA[
I created a 4096-bit gpg-key consisting of:<br />the master-key and 3 sub-keys for signing, decrypting, authenticating on a secure offline-PC.<br />From that key I exported just the 3 subkeys by:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg --export-secret-subkeys &#91;key-ID&#93; &gt; subkeys</div><br />copied subkeys to one of my laptops, imported them into my keyring and on that laptop transferred the subkeys to my Yubikey4.<br />All works fine and I just have to plug in the Yubikey and enter the Yubikey-password to use my keys for decryptpting, signing and ssh-authentication - GREAT!<br /><br />Now I want to use the same Yubikey with the same  same gpg-keys on a second laptop.<br />I tried to just copy over the whole ~/.gnupg directory from laptop #1 to laptop #2, but gpg-agent reports &quot;secret key not available&quot;. The Yubikey is recognised as I can check with<div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg2 --card-status</div><br /><br />Seems there is some additional information missing - please help.<br /><br />Kind regards,<br />x11<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4325">x11</a> — Sun May 15, 2016 12:03 pm</p><hr />
]]></content>
</entry>
</feed>