italia / cie-nis-python-sdk

SDK for reading the NIS code from an Italian Electronic Identity Card (CIE) using Python
BSD 3-Clause "New" or "Revised" License
30 stars 10 forks source link

Develop a library for reading the NIS code with low-level commands #1

Closed alranel closed 6 years ago

alranel commented 6 years ago

Each card has an unique number (NIS) which can be read easily, without the need for the more complex middleware and also without entering the card PIN. It would be very useful to provide a minimal and portable (?) SDK for reading such code using low-level commands. The SDK could be easily embedded in applications and devices.

The NIS code can be mapped to the person's Codice Fiscale just by querying a web service operated by the Government (not available yet). Such feature allows third parties to use CIE cards for access turnstiles (offices, gyms, etc.) because users can be mapped to a local database using the Codice Fiscale.

Example code for this task is available: https://github.com/italia/cie-middleware/blob/master/EsempioPCSC/EsempioPCSC.cpp We basically need to turn it into a library.

Useful resources:

alranel commented 6 years ago

Nota da @fottavi:

Le specifiche IAS richiedono il supporto delle APDU a chunk. L'implementazione attualmente in uso per le CIE supporta anche le APDU estese. Il middleware invia solo APDU a chunk per facilitare il riuso su Android su cui le APDU estese danno problemi.