Yubico / python-fido2

Provides library functionality for FIDO 2.0, including communication with a device over USB.
BSD 2-Clause "Simplified" License
432 stars 109 forks source link

No Serial number in dev property #208

Open YashwanthLokam opened 12 months ago

YashwanthLokam commented 12 months ago

Hi @dainnilsson, I am looking for serial number of the Yubico BIO FIDO series key using the latest fido2 package. image (6) It is showing None for Serial number attribute despite the serial number on the back of the key. Is there any other way to find the Serial number?

dainnilsson commented 8 months ago

Not specifically with this library, but it can be done using https://github.com/Yubico/yubikey-manager, with the relevant bits being reading the DeviceInfo data: https://github.com/Yubico/yubikey-manager/blob/main/yubikit/management.py#L438 and then parsing it: https://github.com/Yubico/yubikey-manager/blob/main/yubikit/management.py#L234