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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2015-07-29T15:57:54+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=1921</id>
<entry>
<author><name><![CDATA[Alessio]]></name></author>
<updated>2015-07-29T15:57:54+01:00</updated>
<published>2015-07-29T15:57:54+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7660#p7660</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7660#p7660"/>
<title type="html"><![CDATA[Re: Yubikey NEO Windows code signing problem]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7660#p7660"><![CDATA[
Glad to hear that you got it working.<br /><br />A.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3428">Alessio</a> — Wed Jul 29, 2015 3:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[syzzer]]></name></author>
<updated>2015-07-29T15:41:43+01:00</updated>
<published>2015-07-29T15:41:43+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7659#p7659</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7659#p7659"/>
<title type="html"><![CDATA[Re: Yubikey NEO Windows code signing problem]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7659#p7659"><![CDATA[
Took me a while to get back to this, but I just did and I think the set-chuid did the trick. Unfortunately not entirely sure, since there has been too much fiddling in between, but at least it works now. Thanks!<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3391">syzzer</a> — Wed Jul 29, 2015 3:41 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Alessio]]></name></author>
<updated>2015-06-17T09:52:47+01:00</updated>
<published>2015-06-17T09:52:47+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7440#p7440</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7440#p7440"/>
<title type="html"><![CDATA[Re: Yubikey NEO Windows code signing problem]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7440#p7440"><![CDATA[
Yes I can confirm that slot 9c is the correct one.<br /><br />Double check that your certificate has the right enhanced key usage field. You need one with OID 1.3.6.1.5.5.7.3.3 in order to enable a key for code signing (admittedly you pass the EKU filter tho).<br />As I can see you're using your own test certificate, so make sure to include that when you generate it.<br /><br />I don't know how you're doing the generation, but I can tell you that it's possible to do it and set the required OID with openssl creating your own CA.<br /><br />Also make sure that the card has a CHUID set.<br /><br />I hope this helps out.<br /><br />A.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3428">Alessio</a> — Wed Jun 17, 2015 9:52 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[syzzer]]></name></author>
<updated>2015-06-16T17:26:40+01:00</updated>
<published>2015-06-16T17:26:40+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7432#p7432</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7432#p7432"/>
<title type="html"><![CDATA[Yubikey NEO Windows code signing problem]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1921&amp;p=7432#p7432"><![CDATA[
I'm looking into doing Windows code signing, using signtool.exe, with the private key stored on my Yubikey NEO. However, I'm running into problems. Hopefully someone can give me a pointer in the right direction.<br /><br />I created a self-signed test keypair in slot 9c ('Digital Signature'), which is nicely listed by signtool when searching for keys:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">signtool.exe sign /n test /v /debug tobesigned.txt<br /><br />The following certificates were considered:<br />    Issued to: testkey<br />    Issued by: testkey<br />    Expires:   Fri Jan 24 18:13:27 2025<br />    SHA1 hash: 014D6DCFDF7DCD735CC3F1D1267F4F429D08F1D6<br /><br />After EKU filter, 1 certs were left.<br />After expiry filter, 1 certs were left.<br />After Subject Name filter, 1 certs were left.<br /></div><br /><br />But the Windows pop-up I get immediately after that tells me<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />A smart card was detected but is not the one required for the current operation. The smart card you are using may be missing required driver software or a required certificate.<br /></div><br /><br />(Also see the attached screenshot.)<br /><br />After which I can only hit cancel, which in turn results in signtool failing:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">After Private Key filter, 0 certs were left.<br />SignTool Error: No certificates were found that met all the given criteria.<br /></div><br /><br />I also tried using a keypair in slot 9a, but that is not even found by signtool, so I guess 9c <em>is</em> the right PIV slot.<br /><br />Has anyone succeeded in using a NEO in combination with signtool? Can you tell me what I'm doing wrong here?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3391">syzzer</a> — Tue Jun 16, 2015 5:26 pm</p><hr />
]]></content>
</entry>
</feed>