Ticket #30 (closed defect: worksforme)

NB! Read about ReportingBugs before filing a ticket!

Opened 7 years ago

Last modified 2 years ago

pkcs11 of opensc not yet supporting Taiwan's Citizen Digital IC card due to its 'special format'

Reported by: loujiing@… Owned by: nils
Priority: normal Milestone:
Component: opensc Version: devel
Severity: normal Keywords: SafeSign StarSign Taiwan review
Cc: Blocked By:
Blocking:

Description

pkcs11 of opensc not yet supporting Taiwan's Citizen Digital IC card due to its 'special format' initalized by SafeSign?, or StarSign. The card is based on StarCos? SPK 2.3.

Hope opensc can support Taiwan's Citizen IC card in the near feature.

.....

30 49 02 01 00 04 08 74 35 26 80 10 01 16 39 0C 0I.....t5&....9.
12 41 2E 45 2E 54 2E 20 45 75 72 6F 70 65 20 42 .A.E.T. Europe B
2E 56 2E A0 22 0C 20 69 6E 6D 61 78 20 20 20 20 .V..". inmax
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 03 02 04 50 FF FF FF FF FF ...P.....
FF FF FF FF FF FF FF FF ........
iso7816.c:126:iso7816_read_binary: returning with: 88
card.c:594:sc_read_binary: returning with: 88
called, left=88, depth 0
Looking for 'TokenInfo?', tag 0x1000010
decoding 'TokenInfo?'

called, left=73, depth 1

Looking for 'version', tag 0x2

decoding 'version'

Looking for 'serialNumber', tag 0x4

decoding 'serialNumber'

Looking for 'manufacturerID', tag 0xc, OPTIONAL

decoding 'manufacturerID'

Looking for 'label', tag 0x20000000, OPTIONAL
not present


ok, here's the error. The label field is present ...

Looking for 'tokenflags', tag 0x3
not present
next tag: A0 22 0C 20 69 6E 6D 61 78 20


but it's tagged explicit and not implicit as specified in
pkcs15 => it's a bug in the safesign software (note: the
tokenflags field is actually present but the parser can't
find it as it can't handle the erroneous tagged label field).
I don't have a current version of iso 7816-15 but I think
it's rather unlikely that they make incompatible changes of
this kind ... Does your card claims to support pkcs15 or
iso 7816-15 ? In this case AET should fix their software.

Change History

comment:1 Changed 6 years ago by nils

  • Owner changed from devel to nils
  • Status changed from new to assigned
  • Milestone set to 0.11.0

need a test card before I can commit a workaround ...

comment:2 Changed 6 years ago by martin

  • Version changed from 0.9.6 to devel

comment:3 Changed 5 years ago by martin

  • Keywords review added

Should [3024] fix this issue ?

comment:4 Changed 5 years ago by martin

  • Milestone changed from 0.11.0 to 0.11.2

We're already past the 0.11.0 release. Can we somehow confirm the existance of the problem and if [3024] actually fixes something ? If the change does not fix the problem, we should re-schedule this issue for a future release.

comment:5 Changed 5 years ago by aj

  • Status changed from assigned to closed
  • Resolution set to worksforme

noone can test this without a card, so nothing we can do. maybe latest code works already with it.

comment:6 Changed 2 years ago by martin

  • Milestone 0.11.5 deleted

Milestone 0.11.5 deleted

Note: See TracTickets for help on using tickets.