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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2017-12-29T07:52:11+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=16&amp;t=2811</id>
<entry>
<author><name><![CDATA[b0o]]></name></author>
<updated>2017-12-29T07:52:11+01:00</updated>
<published>2017-12-29T07:52:11+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2811&amp;p=10078#p10078</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2811&amp;p=10078#p10078"/>
<title type="html"><![CDATA[Re: [QUESTION]  Nano static password outputs wrong character]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2811&amp;p=10078#p10078"><![CDATA[
Okay, oddly this issue seems to have resolved itself. <br /><br />I messed around with some commands, including `xkbcomp`, `xmodmap`, and `setxkbmap`. I also performed a system update with `pacman`. <br /><br />I'm not sure what specifically fixed it, but it works as expected now. <br /><br />I'm not sure if I should mark this thread as [SOLVED] because I don't know what the solution was.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=5022">b0o</a> — Fri Dec 29, 2017 7:52 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[b0o]]></name></author>
<updated>2017-12-21T08:11:59+01:00</updated>
<published>2017-12-21T08:11:59+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2811&amp;p=10076#p10076</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2811&amp;p=10076#p10076"/>
<title type="html"><![CDATA[[QUESTION]  Nano static password outputs wrong characters]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2811&amp;p=10076#p10076"><![CDATA[
I've had both a Yubikey Standard and a Yubikey Nano for quite a long time now, and my main use case involves static passwords.<br /><br />Both my Standard and Nano are set up with <strong>the same</strong> static password in slot 1. All of my machines and Yubikeys are configured to use the en-US keyboard layout.<br /><br />Everything has always worked great on all systems I've tried (Linux, OSX, Windows) for both Yubikeys until recently.<br /><br />My problem started unexpectedly about a week ago:<br /><br />When I trigger slot 1 of the Nano on my primary Linux machine, many of the characters are incorrect. Oddly, though, triggering slot 1 of the Standard outputs the correct characters. When I trigger the same Nano on another machine running macOS, the static password is output correctly.<br /><br />Prior to this, both Yubikeys had been working as expected on this machine/OS for 6+ months. Around the time things stopped working, I didn't change any configuration settings on either Yubikey (I didn't even have the tools installed), and I didn't change any settings on my system which should have any affect on this. The only thing I can think of that may have caused this would be updating some program via my package manager, but I can't pinpoint what that may have been.<br /><br />For reference, my machine is a Mid-2014 Macbook Pro (MacBookPro11,3) running Arch Linux (Linux 4.14.5-1-ARCH x86_64 GNU/Linux).<br /><br />My Standard is Firmware Version 2.3.3, and my Nano is Firmware Version 4.3.3.<br /><br />Here are some sample outputs from both Yubikeys with the specified static password programmed:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Static password:   abcABC123!@#<br />Yubikey Standard:  abcABC123!@#<br />Yubikey Nano:      abcaBC123123<br />----<br />Static password:   qwertyuiopasdfghjklzxcvbnm<br />Yubikey Standard:  qwertyuiopasdfghjklzxcvbnm<br />Yubikey Nano:      qwertyuiopasdfghjklzxcvbnm<br />----<br />Static password:   QWERTYUIOPASDFGHJKLZXCVBNM<br />Yubikey Standard:  QWERTYUIOPASDFGHJKLZXCVBNM<br />Yubikey Nano:      qwertyuiopasdfghjklZXCVBNM<br />----<br />Static password:   `1234567890-=~!@#$%^&amp;*()_+<br />Yubikey Standard:  `1234567890-=~!@#$%^&amp;*()_+<br />Yubikey Nano:      `1234567890-=`1234567890-=<br /></div><br /><br /><br />The only clue I may have found as to why this may be happening is the XKB keymaps for each Yubikey:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">/bin/bash $ # find each Yubikey's device number<br />/bin/bash $ lsusb | grep Yubi<br />Bus 001 Device 025: ID 1050:0010 Yubico.com Yubikey (v1 or v2)<br />Bus 001 Device 022: ID 1050:0407 Yubico.com Yubikey 4 OTP+U2F+CCID<br />/bin/bash $ # output the loaded XKB keymap of each Yubikey<br />/bin/bash $ xkbcomp -i 025 $DISPLAY /tmp/yubikey-std.xkb<br />/bin/bash $ xkbcomp -i 022 $DISPLAY /tmp/yubikey-nano.xkb<br /></div><br /><br />I've uploaded both of the XKB files as well as a diff on GitHub Gist:<br />yubikey-std.xkb: <!-- m --><a class="postlink" href="https://gist.github.com/b0o/b681522b069681f9b90fa8017440993d#file-yubikey-std-xkb">https://gist.github.com/b0o/b681522b069 ... ey-std-xkb</a><!-- m --><br />yubikey-nano.xkb: <!-- m --><a class="postlink" href="https://gist.github.com/b0o/b681522b069681f9b90fa8017440993d#file-yubikey-nano-xkb">https://gist.github.com/b0o/b681522b069 ... y-nano-xkb</a><!-- m --><br />diff yubikey-std.xkb yubikey-nano.xkb: <!-- m --><a class="postlink" href="https://gist.github.com/b0o/b681522b069681f9b90fa8017440993d#file-yubikeys-diff">https://gist.github.com/b0o/b681522b069 ... ikeys-diff</a><!-- m --><br /><br />I'm not exactly sure how or why Linux decided to assign each Yubikey a different XKB keymap by default, because I have done nothing to change this myself. <br /><br />Any help would be appreciated, I can provide more information upon request.<br /><br />Thank you!<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=5022">b0o</a> — Thu Dec 21, 2017 8:11 am</p><hr />
]]></content>
</entry>
</feed>