<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-02-14 1:53 GMT+01:00 Robin Lambertz <span dir="ltr"><<a href="mailto:robinlambertz+dev@gmail.com" target="_blank">robinlambertz+dev@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    Hello,<br></div></blockquote><div><br></div><div>Hello,<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
    <br>
    I'm trying to get my Yubikey NEO to work with GPG in an archlinux VM
    on Qubes OS. Unfortunately, it seems that PCSCD is unable to work
    with my yubikey, it doesn't appear when running pcsc_scan.<br>
    <br>
    I started pcscd with `sudo LIBCCID_ifdLogLevel=0x000F pcscd
    --foreground --debug --apdu --color | tee log.txt` to get more info
    about where the problem could come from. The full logs are attached,
    but the interesting bits are here : <br>
    <br>
    ```<br>
    00000206 ccid_usb.c:621:OpenUSBByName() Found Vendor/Product:
    1050/0111 (Yubico Yubikey NEO OTP+CCID)<br>
    00000012 ccid_usb.c:623:OpenUSBByName() Using USB bus/device: 2/4<br>
    00000010 ccid_usb.c:680:OpenUSBByName() bNumDataRatesSupported is 0<br>
    00001997 ccid_usb.c:1244:InterruptRead(<wbr>) before (0)<br>
    00103904 ccid_usb.c:1290:InterruptRead(<wbr>) after (0) (2)<br>
    00000072 -> 000000 65 00 00 00 00 00 00 00 00 00 <br>
    00002614 <- 000000 81 00 00 00 00 00 00 00 00 00 <br>
    00000050 -> 000000 65 00 00 00 00 00 01 00 00 00 <br>
    00103063 ccid_usb.c:836:ReadUSB() read failed (2/4): -7
    LIBUSB_ERROR_TIMEOUT<br>
    00000224 -> 000000 65 00 00 00 00 00 02 00 00 00 <br>
    05002241 ccid_usb.c:797:WriteUSB() write failed (2/4): -7
    LIBUSB_ERROR_TIMEOUT<br>
    00000242 ifdhandler.c:188:<wbr>CreateChannelByNameOrChannel() failed<br>
    00000159 ccid_usb.c:879:CloseUSB() Closing USB device: 2/4<br>
    00000151 ccid_usb.c:889:CloseUSB() Last slot closed. Release
    resources<br>
    00000240 ccid_usb.c:189:close_libusb_<wbr>if_needed() libusb_exit<br>
    00000476 readerfactory.c:1110:<wbr>RFInitializeReader() Open Port
    0x200000 Failed (usb:1050/0111:libudev:1:/dev/<wbr>bus/usb/002/004)<br>
    00000161 readerfactory.c:375:<wbr>RFAddReader() Yubico Yubikey NEO
    OTP+CCID init failed.<br>
    ```<br>
    <br>
    ReadUSB returns immediately with the TIMEOUT error (isn't that weird
    ?), while the WriteUSB times out after 5 seconds. I'm not sure what
    to do to further debug this. Any hint as to what I could do to
    figure out where the issue is coming from ?<br></div></blockquote><div><br></div><div>The first ReadUSB() works.<br></div><div>But then the next two ReadUSB() fails after 103 ms. Your device is not responding.<br><br></div><div>Does the device works fine with a normal computer + OS (not in a virtual machine)?<br></div><br></div><div class="gmail_quote">Bye<br clear="all"></div><br>-- <br><div class="gmail_signature"> Dr. Ludovic Rousseau</div>
</div></div>