<?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=26&amp;t=2408" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2016-09-02T03:53:12+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=2408</id>
<entry>
<author><name><![CDATA[mouse008]]></name></author>
<updated>2016-09-02T03:53:12+01:00</updated>
<published>2016-09-02T03:53:12+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2408&amp;p=8939#p8939</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2408&amp;p=8939#p8939"/>
<title type="html"><![CDATA[Re: [Question] Importing X509 key and certificate]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2408&amp;p=8939#p8939"><![CDATA[
To import a key (and a cert) you need the <span style="text-decoration: underline">management key</span> (specified by &quot;-k&quot;), not the PIN. So naturally, authentication fails.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4029">mouse008</a> — Fri Sep 02, 2016 3:53 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Deever]]></name></author>
<updated>2016-09-01T19:15:03+01:00</updated>
<published>2016-09-01T19:15:03+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2408&amp;p=8932#p8932</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2408&amp;p=8932#p8932"/>
<title type="html"><![CDATA[[Question] Importing X509 key and certificate]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2408&amp;p=8932#p8932"><![CDATA[
Hi folks!<br /><br />I'm trying to import an X509 (RSA) key and its corresponding certificate to a Yubikey NEO. Given that the files were created with<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">openssl req -x509 -new -newkey rsa:2048 -days 1825 -nodes -subj '/CN=username' -keyout x509.key -out x509.crt</div><br />I'm trying to import the data with<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">yubico-piv-tool -s 9a -i x509.key -a import-key<br />yubico-piv-tool -s 9a -i x509.crt -a import-certificate</div><br />getting the following error for both of the commands:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Failed authentication with the application.</div><br />Same thing happens when I specify the (correct) PIN with -P.<br /><br />Any suggestions?<br /><br />Greetings,<br />/dev<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4462">Deever</a> — Thu Sep 01, 2016 7:15 pm</p><hr />
]]></content>
</entry>
</feed>