Ticket #30 (closed defect: worksforme)
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: | 0.11.5 |
| Component: | opensc | Version: | devel |
| Severity: | normal | Keywords: | SafeSign StarSign Taiwan review |
| Cc: |
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.
