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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2016-09-27T10:46:31+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2410</id>
<entry>
<author><name><![CDATA[uniden]]></name></author>
<updated>2016-09-03T08:45:40+01:00</updated>
<published>2016-09-03T08:45:40+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2410&amp;p=8951#p8951</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2410&amp;p=8951#p8951"/>
<title type="html"><![CDATA[Re: Yubikey 4 gpg decrypting]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2410&amp;p=8951#p8951"><![CDATA[
That was it, its working now <img src="https://forum.yubico.com/images/smilies/icon_e_biggrin.gif" alt=":D" title="Very Happy" /> thank you<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4465">uniden</a> — Sat Sep 03, 2016 8:45 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SporkWitch]]></name></author>
<updated>2016-09-27T10:46:31+01:00</updated>
<published>2016-09-03T03:40:42+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2410&amp;p=8947#p8947</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2410&amp;p=8947#p8947"/>
<title type="html"><![CDATA[Re: Yubikey 4 gpg decrypting]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2410&amp;p=8947#p8947"><![CDATA[
<div class="quotetitle">uniden wrote:</div><div class="quotecontent"><br />I have a Yubikey 4 and followed the following tutorial on a windows machine with gpg4win installed <!-- m --><a class="postlink" href="https://developers.yubico.com/PGP/Importing_keys.html">https://developers.yubico.com/PGP/Importing_keys.html</a><!-- m -->. I’m able to encrypt and decrypt files without a problem on windows however on my laptop (Linux mint 18) im only able to encrypt files since I exported and copied my public key from my windows machine. Im sure im missing something very simple here but any help would be greatly appreciated.<br /></div><br />On source:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg2 --export-secret-keys 0xDEADBEEFDEADBEEF &gt; privkey.gpg</div><br />On destination:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg2 --import /path/to/privkey.gpg</div><br /><br />Even though the keys themselves are stored on the token, they're still stubbed out in the keyring, otherwise the system wouldn't know it had any secret keys, let alone where to look for them.  This means that you still need to export the secret keys and import them on the destination system, so that the destination is aware of their existence and where to find them if they're needed.<br /><br /><strong>UPDATE:</strong> A better way to handle this follows.<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ gpg2 --card-edit<br />&#91;information from your card here&#93;<br />gpg/card&gt; fetch<br />&#91;retrieving &lt;keyid&gt; from keyserver, import messages&#93;<br />gpg/card&gt; q<br />$ gpg --card-statue</div><br /><br />The keys stored on the token should now be stubbed on your local copy of the key and available for use.  This method requires that you have the url set on the card (via gpg --card-edit), otherwise the fetch command won't know where to get the public key from.<br /><br />If you haven't set the url (or it doesn't work; I'm currently troubleshooting a bug where it says it's retrieving the key, but doesn't actually import it, and there's no error output), you can import the pubkey by whatever means are convenient, then do gpg --card-status to update it with the correct stubs.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4454">SporkWitch</a> — Sat Sep 03, 2016 3:40 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[uniden]]></name></author>
<updated>2016-09-03T08:46:02+01:00</updated>
<published>2016-09-02T22:28:56+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2410&amp;p=8946#p8946</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2410&amp;p=8946#p8946"/>
<title type="html"><![CDATA[Yubikey 4 gpg decrypting [Solved]]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2410&amp;p=8946#p8946"><![CDATA[
I have a Yubikey 4 and followed the following tutorial on a windows machine with gpg4win installed <!-- m --><a class="postlink" href="https://developers.yubico.com/PGP/Importing_keys.html">https://developers.yubico.com/PGP/Importing_keys.html</a><!-- m -->. I’m able to encrypt and decrypt files without a problem on windows however on my laptop (Linux mint 18) im only able to encrypt files since I exported and copied my public key from my windows machine. Im sure im missing something very simple here but any help would be greatly appreciated.<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg2 --version<br />gpg (GnuPG) 2.1.11<br />libgcrypt 1.6.5<br />Copyright (C) 2016 Free Software Foundation, Inc.<br />License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;<br />This is free software: you are free to change and redistribute it.<br />There is NO WARRANTY, to the extent permitted by law.</div><br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg2 --card-edit<br />gpg: WARNING: unsafe ownership on configuration file '/home/cyanide/.gnupg/gpg.conf'<br /><br />Reader ...........: 1050:0407:X:0<br />Application ID ...: D2760001240102010006047107010000<br />Version ..........: 2.1<br />Manufacturer .....: Yubico<br />Serial number ....: 04710701<br />Name of cardholder: &#91;not set&#93;<br />Language prefs ...: en<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 ...: rsa4096 rsa4096 rsa4096<br />Max. PIN lengths .: 127 127 127<br />PIN retry counter : 3 0 3<br />Signature counter : 5<br />Signature key ....: CD73 B7E9 0BF5 1ACD 561A  66FA 6FB2 5141 963F A26E<br />      created ....: 2016-09-02 05:49:01<br />Encryption key....: 0A77 9636 A665 3C9E 6F22  E708 D5D2 8229 7A76 A083<br />      created ....: 2016-09-02 05:49:01<br />Authentication key: F00F 61A3 B2B1 B3DE AD25  FF03 0F1C 7113 AEBE BA99<br />      created ....: 2016-09-02 05:54:22<br />General key info..: pub  rsa4096/963FA26E 2016-09-02 Strychnine<br />sec&gt;  rsa4096/963FA26E  created: 2016-09-02  expires: never     <br />                        card-no: 0006 04710701</div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4465">uniden</a> — Fri Sep 02, 2016 10:28 pm</p><hr />
]]></content>
</entry>
</feed>