Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop a library for reading the NIS code with PKCS#11 #2

Open
alranel opened this issue Oct 4, 2017 · 4 comments
Open

Develop a library for reading the NIS code with PKCS#11 #2

alranel opened this issue Oct 4, 2017 · 4 comments

Comments

@alranel
Copy link
Member

alranel commented Oct 4, 2017

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 PKCS#11. 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/tree/master/EsempioPKCS11
We basically need to turn it into a library, in both C++ and C#. The C++ version should also target MacOS X and Linux, since they provide PKCS#11. During development it's not required to make a single multi-platform library; distinct implementations can be developed for convenience.

@Peppub
Copy link

Peppub commented Oct 7, 2017

We'd like to map the NIS code through a web service, but how?
Seems the connection element is missing.

How we can solve this?

@kipters
Copy link

kipters commented Nov 8, 2017

I'd like to help, but I think I won't be able to request a CIE card for a long time. Is there any way to get "test" cards?

@alranel
Copy link
Member Author

alranel commented Nov 14, 2017

@Peppub, I know this answer is very late (sorry!). The web service for mapping the NIS code to the Fiscal Code is active but it can only be accessed by public bodies after signing an agreement.

@kipters, sadly there's currently no way to get test cards. It's definitely a priority we are working on.

@alranel
Copy link
Member Author

alranel commented Nov 23, 2017

I'm leaving this issue open because the new great Python implementation only uses low-level commands (APDUs) and still lacks PCKS#11 code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants