philipWendland / IsoApplet

A Java Card PKI Applet aiming to be ISO 7816 compliant
GNU General Public License v3.0
165 stars 72 forks source link

Applet AID is random, i.e. not unique #1

Open philipWendland opened 10 years ago

philipWendland commented 10 years ago

At the moment, the applet uses a "random" AID. This can cause issues, especially as the existance of the applet is being tested by the OpenSC driver using the AID.

lucasperin commented 8 years ago

Hi @philipWendland

Is this issue still pertinent to the project? Does it affect compatibility with OpenSC?

philipWendland commented 8 years ago

Hi,

the AID is still from the random pool, but it is included in OpenSC this way, so it does not affect compatibility with OpenSC. If we would change to a registered AID, we would need to change OpenSC as well, but keep the old AID for compatibility reasons. I don't know if it is worth it to keep two AIDs in OpenSC.

On 04/01/2016 06:10 PM, Lucas Perin wrote:

Hi @philipWendland https://github.com/philipWendland

Is this issue still pertinent to the project? Does it affect compatibility with OpenSC?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/philipWendland/IsoApplet/issues/1#issuecomment-204453714

kelvinnguyen commented 6 years ago

Dear I use OpenSC to check isoapplet. I can't get User PIN object, please help me this problem!

2017-09-26 10:00:00.741 [cardmod] ..\opensc-0.12.2\src\libopensc\card.c:459:sc_unlock: called

2017-09-26 10:00:00.741 [cardmod] ..\opensc-0.12.2\src\libopensc\pkcs15.c:1258:sc_pkcs15_bind: returning with: 0 (Success)

PKCS#15 initialization result: 0, Success

md_get_pin_by_role

2017-09-26 10:00:00.741 [cardmod] ..\opensc-0.12.2\src\libopensc\pkcs15.c:1699:sc_pkcs15_find_pin_by_flags: called

2017-09-26 10:00:00.741 Find PIN flags:0x10, mask:0xD2, index:-1 2017-09-26 10:00:00.741 [cardmod] ..\opensc-0.12.2\src\libopensc\pkcs15.c:1726:sc_pkcs15_find_pin_by_flags: returning with: -1407 (Requested object not found)

2017-09-26 10:00:00.741 [cardmod] ..\opensc-0.12.2\src\libopensc\pkcs15.c:1699:sc_pkcs15_find_pin_by_flags: called

2017-09-26 10:00:00.741 Find PIN flags:0x12, mask:0xD2, index:-1 2017-09-26 10:00:00.741 [cardmod] ..\opensc-0.12.2\src\libopensc\pkcs15.c:1726:sc_pkcs15_find_pin_by_flags: returning with: -1407 (Requested object not found)

Cannot get User PIN object associate_card() error with code=2148532258

CardAcquireContext

kelvinnguyen commented 6 years ago

Dear,

I initial isoapplet card.

Thanks