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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2014-12-08T10:45:12+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=33&amp;t=1650</id>
<entry>
<author><name><![CDATA[Simon]]></name></author>
<updated>2014-12-08T10:45:12+01:00</updated>
<published>2014-12-08T10:45:12+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1650&amp;p=6473#p6473</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1650&amp;p=6473#p6473"/>
<title type="html"><![CDATA[Re: [BUG] Attestation certificate is incorrectly encoded]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1650&amp;p=6473#p6473"><![CDATA[
Hi James,<br /><br />Thanks for looking at this aspect, and thanks for your report.  I believe you are right -- we'll look into changing the value part into a DER NULL.<br /><br />The bigger question about the meaning of the extension is something we should document further.  The idea is that the RP use the extension to find out what kind of Yubico U2F device was used.  We are working on getting a page up on <!-- m --><a class="postlink" href="https://developers.yubico.com/">https://developers.yubico.com/</a><!-- m --> describing this.<br /><br />If you have any further comments, feedback or ideas on the attestation part, please let us know.  This is an area of the U2F specs that are somewhat underspecified at the moment, and that we hope to improve.<br /><br />/Simon<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2">Simon</a> — Mon Dec 08, 2014 10:45 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jamesmanger]]></name></author>
<updated>2014-12-05T06:30:41+01:00</updated>
<published>2014-12-05T06:30:41+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1650&amp;p=6459#p6459</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1650&amp;p=6459#p6459"/>
<title type="html"><![CDATA[[BUG] Attestation certificate is incorrectly encoded]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1650&amp;p=6459#p6459"><![CDATA[
The attestation certificate from a Yubikey U2F token (blue) includes a certificate extension (1.3.6.1.4.1.41482.1.1) with no content. This is not valid. While some (common) certificate parsers may ignore this error, it is still an error that other software does notice.<br /><br />My guess is that this extension acts as a flag (defined by Yubico or FIDO?). Presumably the presence of this extension has a meaning, but there is no extra data to convey. However, every extension must consist of an id and a value. The value cannot be nothing. ASN.1 has a NULL value that is suitable when there is no other info to convey. The value is DER-encoded and embedded in an OCTET STRING. It is not valid to have an empty OCTET STRING with nothing embedded, which is what the attestation certificate does.<br /><br />Invalid attestation certificate:<br />-----BEGIN CERTIFICATE-----<br />MIICHDCCAQagAwIBAgIEJNurQDALBgkqhkiG9w0BAQswLjEsMCoGA1UEAxMjWXVi<br />aWNvIFUyRiBSb290IENBIFNlcmlhbCA0NTcyMDA2MzEwIBcNMTQwODAxMDAwMDAw<br />WhgPMjA1MDA5MDQwMDAwMDBaMCsxKTAnBgNVBAMMIFl1YmljbyBVMkYgRUUgU2Vy<br />aWFsIDEzNTAzMjc3ODg4MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEArCUvjR9<br />R3lBxHeOvsXKTe0qR5+qHm/sOa/r3gwgcMtb1L1pyWp447+HUf61eRuN+srClAF1<br />HLFXuXwJ5DkaNqMSMBAwDgYKKwYBBAGCxAoBAQQAMAsGCSqGSIb3DQEBCwOCAQEA<br />o2OuDpg68wu68SyLLfNaWb8cu0obD8toxIRVhJD2hzRYZbjbAmnDRuVTiEwsVgev<br />DqJ7kKyM8e9DH3KsGJ2yHIJJFL8XiKVRGjPQe0yONGR86fYeFRapqbNukApAIGH2<br />mqRuEsUyuZP5Qj76qkz5o7ZUtN3e8pJKVI/VmZVRDdT39Nmk1SGThzxxybh+hoU+<br />ni2nXo8MbSgwU3TU791eFJb4wzkGEHvWi9Y1DarSw3gR7KPKQ7yTC3NAl972nWiN<br />lFUMTPsYqeJLhqLl2I9JmJmgm85bgQxTbK85Dci93pYN8zDKyrwFIaGDI5V//ryl<br />nKkLILENCbUjHFjCfrpngw==<br />-----END CERTIFICATE-----<br /><br />The invalid DER-encoded extension (in hex) is:<br />         30 10<br />            30 0E<br />               06 0A 2B0601040182C40A0101<br />               04 00<br />A valid version would be:<br />         30 12<br />            30 10<br />               06 0A 2B0601040182C40A0101<br />               04 02 05 00<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3357">jamesmanger</a> — Fri Dec 05, 2014 6:30 am</p><hr />
]]></content>
</entry>
</feed>