-
Notifications
You must be signed in to change notification settings - Fork 729
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
Added card capabilities check to correctly determine which algorithms… #926
Conversation
… and key sizes are supported.
The MYEID_CARD_CAP_PIV_EMU flag looks interesting. Looking at their web site, I found: Very informative document with details on all the MYEID commands. On page 6: "PIV / CIV emulation" Do you have any more information or know where it can be found? |
PIV emulation is a new feature since MyEID 4.0 and not yet included in the reference guide. When ordering MyEID 4 cards one should mention that the PIV feature is needed, to ensure that this feature is activated before shipping. PIV emulation is read only. You have to personalize the card as a MyEID card, using OpenSC or some other tools. Then you send PIV INITIALIZE command and define the mapping to files in PKCS#15 structure in its data. After that the card appears as a PIV card. We have successfully tested Windows smart card logon with PIV emu. Here is an example of the PIV initialization command. Copy it to an editor that has fixed character width. PIV init command (activate and deactivate) Init PIV functionality Better documentation is coming at some point. |
Travis CI build failed at card-dnie.c, but this PR contains changes only to card-myeid.c. Is there something I can do to resolve this, and does the failed build prevent from merging? |
@rickyepoderi can you address the card-dnie.c failure In Travi-Ci failure, this look like a card-dnie.c problem, and this PR #926 is not the cause. |
This was introduced in the commit: e7f118d I suppose the change was done blindly because you have no dnie. It should be like this:
At least, this way it compiles and then it works. Do you want me to submit a pull request? |
@hhonkanen |
Thanks rickyepoderi. I edited card-dnie.c according to your comment and committed it, so you don't need to submit another pull request. The build goes ok now. |
… and key sizes are supported.