Get serial number
Reads the serial number of the YubiKey if it is allowed by the configuration. Note that certain keys, such as the Security Key by Yubico, do not have serial numbers.
Available
YubiKey firmware 1.2 and later.
Command APDU info
| CLA | INS | P1 | P2 | Lc | Data |
|---|---|---|---|---|---|
| 0x00 | 0x01 | 0x10 | 0x00 | (absent) | (absent) |
Response APDU info
| Lr | Data | SW1 | SW1 |
|---|---|---|---|
| 0x04 | Serial Number | 0x90 | 0x00 |
Examples
$ opensc-tool.exe -c default -r 1 -s 00:a4:04:00:08:a0:00:00:05:27:20:01:01 -s 00:01:10:00
Sending: 00 A4 04 00 08 A0 00 00 05 27 20 01 01
Received (SW1=0x90, SW2=0x00):
04 03 07 03 07 00 06 0F 00 00 ..........
Sending: 00 01 10 00
Received (SW1=0x90, SW2=0x00):
00 6B 95 6A .k.j // Serial Number: 7050602