Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
103 stars 28 forks source link

fido2: Add get-info subcommand #545

Closed robin-nitrokey closed 5 months ago

robin-nitrokey commented 6 months ago

This patch adds a get-info subcommand to the fido2 command that prints the response to a GET_INFO request.

Fixes: https://github.com/Nitrokey/pynitrokey/issues/465


Example:

$ nitropy fido2 get-info
Command line tool to interact with Nitrokey devices 0.4.47
versions: ['U2F_V2', 'FIDO_2_0', 'FIDO_2_1']
extensions: ['credProtect', 'hmac-secret']
aaguid: 8bc54968-07b1-4d5f-b249-607f5d527da2
options: {'rk': True, 'up': True, 'plat': False, 'credMgmt': True, 'clientPin': True, 'largeBlobs': False, 'pinUvAuthToken': True}
max_msg_size: 3072
pin_uv_protocols: [2, 1]
max_creds_in_list: 10
max_cred_id_length: 255
transports: ['nfc', 'usb']