Difference between revisions of "User:Lth/Fido"

From Stm32World Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
<pre>
 +
lth@ncpws04:~$ lsusb
 +
Bus 002 Device 085: ID 0483:52a4 STMicroelectronics LifeLine Cable
 +
lth@ncpws04:~$ sudo usbhid-dump -m 0483:52a4
 +
002:085:000:DESCRIPTOR        1660203926.173766
 +
06 00 FF 09 01 A1 01 15 00 26 FF 00 75 08 95 40
 +
09 01 81 02 95 40 09 01 91 02 95 01 09 01 B1 02
 +
C0
 +
 +
 +
lth@ncpws04:~$ lsusb|grep olo
 +
Bus 002 Device 086: ID 0483:a2ca STMicroelectronics Solo Hacker 4.1.2-2-g2884f95
 +
lth@ncpws04:~$ sudo usbhid-dump -m 0483:a2ca
 +
002:086:000:DESCRIPTOR        1660203971.488683
 +
06 D0 F1 09 01 A1 01 09 20 15 00 26 FF 00 75 08
 +
95 40 81 02 09 21 15 00 26 FF 00 75 08 95 40 91
 +
02 C0
 +
 +
</pre>
 +
 +
 
Solokey USB:
 
Solokey USB:
  

Latest revision as of 08:48, 11 August 2022

lth@ncpws04:~$ lsusb
Bus 002 Device 085: ID 0483:52a4 STMicroelectronics LifeLine Cable
lth@ncpws04:~$ sudo usbhid-dump -m 0483:52a4
002:085:000:DESCRIPTOR         1660203926.173766
 06 00 FF 09 01 A1 01 15 00 26 FF 00 75 08 95 40
 09 01 81 02 95 40 09 01 91 02 95 01 09 01 B1 02
 C0


lth@ncpws04:~$ lsusb|grep olo
Bus 002 Device 086: ID 0483:a2ca STMicroelectronics Solo Hacker 4.1.2-2-g2884f95
lth@ncpws04:~$ sudo usbhid-dump -m 0483:a2ca
002:086:000:DESCRIPTOR         1660203971.488683
 06 D0 F1 09 01 A1 01 09 20 15 00 26 FF 00 75 08
 95 40 81 02 09 21 15 00 26 FF 00 75 08 95 40 91
 02 C0


Solokey USB:

Bus 002 Device 041: ID 0483:a2ca STMicroelectronics Solo Hacker 4.1.2-2-g2884f95
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0483 STMicroelectronics
  idProduct          0xa2ca 
  bcdDevice            1.00
  iManufacturer           1 SoloKeys
  iProduct                2 Solo Hacker 4.1.2-2-g2884f95
  iSerial                 3 208B36B3324B
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0029
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              2 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      34
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5

usbhid-dump:

lth@ncpws04:~$ sudo usbhid-dump -m 0483:a2ca
002:041:000:DESCRIPTOR         1660117539.902876
 06 D0 F1 09 01 A1 01 09 20 15 00 26 FF 00 75 08
 95 40 81 02 09 21 15 00 26 FF 00 75 08 95 40 91
 02 C0

navigator.credentials.create() argument:

{
  "publicKey": {
    "attestation": "direct",
    "authenticatorSelection": {
      "requireResidentKey": false,
      "userVerification": "discouraged"
    },
    "challenge": "Tgikj5q/6zPiutEzrt8mYDqtSmtD2oi7yXSFt6bKMa0=",
    "excludeCredentials": [],
    "pubKeyCredParams": [
      {
        "alg": -7,
        "type": "public-key"
      },
      {
        "alg": -257,
        "type": "public-key"
      }
    ],
    "rp": {
      "id": "demo.yubico.com",
      "name": "YubicoDemo"
    },
    "timeout": 90000,
    "user": {
      "displayName": "Yubico demo user",
      "id": "kZ2l24b52zOppkbYwSw4SdaSpbiJAvxAXEOBsPmu9O8=",
      "name": "Yubico demo user"
    }
  }
}

navigator.credentials.create() response:

{
  "id": "FNKyPtk-eLvfjORDs7OgLdT2lsN3ylL2lHJo85B-ehWm7MRs74KtG1Rkd1kdAIsIdZ7D5tLstPOUdL_qaWmSXQO3-gIAAA",
  "response": {
    "attestationObject": "o2NmbXRmcGFja2VkZ2F0dFN0bXSjY2FsZyZjc2lnWEYwRAIgdpQYMdouo8wATW4nYpuj5+Q1C1wpfR/8NwyxB/hIYUECIE5xGY7OT9Nx9VcLTjUC52hH+YYR5T8JkXSluSZmYoCnY3g1Y4FZAu0wggLpMIICjqADAgECAgEBMAoGCCqGSM49BAMCMIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITWFyeWxhbmQxFDASBgNVBAoMC1NPTE8gSEFDS0VSMRAwDgYDVQQLDAdSb290IENBMRUwEwYDVQQDDAxzb2xva2V5cy5jb20xITAfBgkqhkiG9w0BCQEWEmhlbGxvQHNvbG9rZXlzLmNvbTAgFw0xODEyMTEwMjIwMTJaGA8yMDY4MTEyODAyMjAxMlowgZQxCzAJBgNVBAYTAlVTMREwDwYDVQQIDAhNYXJ5bGFuZDEUMBIGA1UECgwLU09MTyBIQUNLRVIxIjAgBgNVBAsMGUF1dGhlbnRpY2F0b3IgQXR0ZXN0YXRpb24xFTATBgNVBAMMDHNvbG9rZXlzLmNvbTEhMB8GCSqGSIb3DQEJARYSaGVsbG9Ac29sb2tleXMuY29tMFkw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