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

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

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2800</id>
<entry>
<author><name><![CDATA[onemorething]]></name></author>
<updated>2017-12-11T00:55:02+01:00</updated>
<published>2017-12-11T00:55:02+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2800&amp;p=10053#p10053</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2800&amp;p=10053#p10053"/>
<title type="html"><![CDATA[Re: Can't import PGP key to Yubikey 4]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2800&amp;p=10053#p10053"><![CDATA[
Hi John,<br /><br />Thanks for replying.<br /><br />Yes, I ran the toggle command and followed these instructions precisely: <!-- 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 />But I continue to get &quot;gpg: KEYTOCARD failed: Bad secret key&quot;. I'm using Linux. Is it possible that I'm missing a library? I should point out that I'm using gpg2, not gpg.<br /><br />gpg2 -K presents my secret keys as expected.<br /><br />J.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4977">onemorething</a> — Mon Dec 11, 2017 12:55 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anaglypta]]></name></author>
<updated>2017-12-10T00:54:13+01:00</updated>
<published>2017-12-10T00:54:13+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2800&amp;p=10051#p10051</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2800&amp;p=10051#p10051"/>
<title type="html"><![CDATA[Re: Can't import PGP key to Yubikey 4]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2800&amp;p=10051#p10051"><![CDATA[
Hello @onemorething,<br /><br />Did you enter the toggle command to switch between public and private key listings?<br /><br />ie<br /><br />gpg --edit-key [key_id]<br />toggle<br />keytocard<br /><br />etc,etc<br /><br />What do you get if you run the command &quot;gpg -K&quot;<br /><br />John.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4976">Anaglypta</a> — Sun Dec 10, 2017 12:54 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[onemorething]]></name></author>
<updated>2017-12-09T03:14:01+01:00</updated>
<published>2017-12-09T03:14:01+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2800&amp;p=10050#p10050</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2800&amp;p=10050#p10050"/>
<title type="html"><![CDATA[Can't import PGP key to Yubikey 4]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2800&amp;p=10050#p10050"><![CDATA[
Based on all the instructions I've read (and they are almost all the same as each other) the importing of my PGP key should be really simple. But, I just can't import my key.<br /><br />Using gpg2 I create the new key on my computer and then add subkeys for signing and authentication (using 4096 keys). Using &quot;gpg2 --edit-key [key_id]&quot; and the command keytocard, I try to move the key to my Yubikey 4. But, I get:  &quot;gpg: KEYTOCARD failed: Bad secret key&quot;<br /><br />I am definitely using the correct passphrase. <br /><br />Any suggestions would be greatly appreciated.<br /><br />Thanks.<br /><br />J<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4977">onemorething</a> — Sat Dec 09, 2017 3:14 am</p><hr />
]]></content>
</entry>
</feed>