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

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

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2480</id>
<entry>
<author><name><![CDATA[kentukynitemare]]></name></author>
<updated>2017-07-18T21:36:22+01:00</updated>
<published>2017-07-18T21:36:22+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2480&amp;p=9665#p9665</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2480&amp;p=9665#p9665"/>
<title type="html"><![CDATA[Re: [QUESTION] Yubikey 4 - gpg - Assertion failed]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2480&amp;p=9665#p9665"><![CDATA[
I had the same issue.<br />For anyone else who has this problem: <br /><br />install gnupg2<br />(I had to install scdaemon)<br />run gpg2 --card-edit<br /><br />After that you can follow the prompt (or walkthrough <a href="https://www.yubico.com/support/knowledge-base/categories/articles/use-yubikey-openpgp/" class="postlink">here</a>).<br /><br />Apparently og gpg doesn't play well with newer smart cards.<br /><br /><br />Edit: <!-- m --><a class="postlink" href="https://www.jfry.me/articles/2015/gpg-smartcard/">https://www.jfry.me/articles/2015/gpg-smartcard/</a><!-- m -->    &lt;&lt; Not me, but useful walk through.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4760">kentukynitemare</a> — Tue Jul 18, 2017 9:36 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[helenfornazier]]></name></author>
<updated>2016-11-08T16:26:19+01:00</updated>
<published>2016-11-08T16:26:19+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2480&amp;p=9151#p9151</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2480&amp;p=9151#p9151"/>
<title type="html"><![CDATA[[QUESTION] Yubikey 4 - gpg - Assertion failed]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2480&amp;p=9151#p9151"><![CDATA[
Hi,<br /><br />I just got a Yubikey 4. I am running linux and I am trying to generate a key with gpg --card-edit, but I am getting the error &quot;gpg: ../../g10/app-openpgp.c:2271: build_privkey_template: Assertion `rsa_e_len &lt;= rsa_e_reqlen' failed&quot;<br />Any ideas how I can solve this?<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ gpg --card-edit<br /><br />gpg: detected reader `Yubico Yubikey 4 OTP+CCID 00 00'<br />Application ID ...: D2760001240102010006049143800000<br />Version ..........: 2.1<br />Manufacturer .....: unknown<br />Serial number ....: 04914380<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 />Private DO 1 .....: &#91;not set&#93;<br />Private DO 2 .....: &#91;not set&#93;<br />Signature PIN ....: not forced<br />Key attributes ...: 2048R 2048R 2048R<br />Max. PIN lengths .: 127 127 127<br />PIN retry counter : 3 0 3<br />Signature counter : 5<br />Signature key ....: 51C3 E6FE C41E 5262 4DBE  7F03 6E1F EC0D C627 A14F<br />      created ....: 2016-11-08 13:49:14<br />Encryption key....: 59CE 2819 D4DB F088 B983  792B 2994 DA99 8781 5F8D<br />      created ....: 2016-11-08 13:49:14<br />Authentication key: B963 EC3F 3674 C298 8981  C2CF 353F F934 F626 4878<br />      created ....: 2016-11-08 13:49:14<br />General key info..: &#91;none&#93;<br /><br />gpg/card&gt; admin<br />Admin commands are allowed<br /><br />gpg/card&gt; generate<br />Make off-card backup of encryption key? (Y/n) y<br /><br />gpg: NOTE: keys are already stored on the card!<br /><br />Replace existing keys? (y/N) y<br /><br />Please note that the factory settings of the PINs are<br />   PIN = `123456'     Admin PIN = `12345678'<br />You should change them using the command --change-pin<br /><br /><br />Please enter the PIN<br />What keysize do you want for the Signature key? (2048) <br />What keysize do you want for the Encryption key? (2048) <br />What keysize do you want for the Authentication key? (2048) <br />Please specify how long the key should be valid.<br />         0 = key does not expire<br />      &lt;n&gt;  = key expires in n days<br />      &lt;n&gt;w = key expires in n weeks<br />      &lt;n&gt;m = key expires in n months<br />      &lt;n&gt;y = key expires in n years<br />Key is valid for? (0) <br />Key does not expire at all<br />Is this correct? (y/N) y<br /><br />You need a user ID to identify your key; the software constructs the user ID<br />from the Real Name, Comment and Email Address in this form:<br />    &quot;Heinrich Heine (Der Dichter) &lt;heinrichh@duesseldorf.de&gt;&quot;<br /><br />Real name: Dak Yubikey<br />Email address: dak.yubikey@test.org<br />Comment: <br />You selected this USER-ID:<br />    &quot;Dak Yubikey &lt;dak.yubikey@test.org&gt;&quot;<br /><br />Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O<br />gpg: existing key will be replaced<br />gpg: 3 Admin PIN attempts remaining before card is permanently locked<br /><br />Please enter the Admin PIN<br />gpg: please wait while key is being generated ...<br />gpg: key generation completed (13 seconds)<br />gpg: signatures created so far: 0<br />gpg: existing key will be replaced<br />gpg: please wait while key is being generated ...<br />gpg: key generation completed (6 seconds)<br />gpg: signatures created so far: 1<br />gpg: signatures created so far: 2<br />You need a Passphrase to protect your secret key.<br /><br />                   <br />Not enough random bytes available.  Please do some other work to give<br />the OS a chance to collect more entropy! (Need 186 more bytes)<br />.....+++++<br />...........+++++<br />gpg: existing key will be replaced<br />gpg: ../../g10/app-openpgp.c:2271: build_privkey_template: Assertion `rsa_e_len &lt;= rsa_e_reqlen' failed.<br />Aborted (core dumped)<br /><br />$ lsb_release -a<br />No LSB modules are available.<br />Distributor ID:   Ubuntu<br />Description:   Ubuntu 16.04.1 LTS<br />Release:   16.04<br />Codename:   xenial<br /><br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4528">helenfornazier</a> — Tue Nov 08, 2016 4:26 pm</p><hr />
]]></content>
</entry>
</feed>