support the latest generation of Slovak eID #2745
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I propose to add drivers for Slovak eID cards "version 4" (as numbered by the issuing authorities) based on IDEMIA Cosmo 9.2 operating over the contact interface.
My skeid driver deals with an earlier generation of the card. The current one has been issued since December 2022. The platforms are different, yet there are several similarities. I prefer to maintain separate drivers and pkcs15 emulators, would attemt to unite parts of the drivers if deemed appropriate. I am opening a draft PR "early" in the hope of help with shaping the driver(s).
The driver is modelled on the proprietary eID Klient distributed by the government.
There appear to be no pkcs15 information available on the card. There are three 3072-bit RSA keys and corresponding certificates, the operations with all the three keys appear to work well.
The driver uses a global PIN (called BOK) and a local signature PIN (called Podpisový PIN). VERIFY and INFO work, I have not been able to test any PIN changes.
There is also a PUK that has been omitted on purpose and a CAN that has been of no use so far.
The card has a contactless interface that will likely require PACE.
npa-tool --can
&npa-tool --pin
are known to work with the card, support for wireless operation (if at all desired) should be well within reach.The card seems to only sign 32-byte (SHA256) hashes, that is probably one of the reasons
pkcs11-tool --test
fails.Checklist