Hello Andre, Andre Zepezauer wrote: > On Tue, 2010-10-26 at 17:23 +0200, Viktor TARASOV wrote: > >> I've got this conclusion from the 'Unambiguous descriptions of ASN.1 >> tagging' >> (http://powerasn.ncottin.net/download/ASN1_Tagging.pdf) . >> >> I agree that it's not a supreme authority on the subject, >> nevertheless the natively PKCS#15 cards that I'm using (Oberthur, >> Morpho, Gemalto) have the encoding >> of the 'lastUpdate' presented in the second dump. >> > > Exactly that information I need. Thank you very much. > > Please can you try the attached patch with the other p15 cards you have. > Only "pkcs15-tool -D" will produce meaningful output. And "pkcs15-init > -C -c cardos -p pkcs15 --so-pin=xxxx" will encode a conforming TokenInfo > (may work for other cards too). >
Result from current (r4835) trunk with your patch applied: - from CardOS v4.3b: #pkcs15-init -C -c cardos -p pkcs15 --so-pin "12345678" --so-puk "123456" Using reader with a card: OmniKey CardMan 3121 00 00 #pkcs15-tool -D Using reader with a card: OmniKey CardMan 3121 00 00 TokenInfo [PKCS#15] Version : 0 Serial Number : 13fbcb17c7 Manufacturer : OpenSC Project Label : OpenSC Card Flags : EID compliant Last Update : 20101030191911Z - from Oberthur's AuthentIC v3.1: #pkcs15-tool -D Using reader with a card: OmniKey CardMan 3121 00 00 TokenInfo [ISO/IEC 7816-15:2004] Version : 1 Manufacturer : Oberthur Technologies Label : OT AWP Flags : Login required, PRN generation Algorithms : [reference: algorithm parameters operations oid algRef] 1: 0x0220 [] ------h- 1.3.14.3.2.26 0x10 2: 0x0250 [] ------h- 2.16.840.1.101.3.4.2.1 0x40 3: 0x0006 [] -s------ 1.2.840.113549.1.1.5 0x12 4: 0x0040 [] -s------ 1.2.840.113549.1.1.11 0x42 5: 0x0001 [] -s------ 1.2.840.113549.1.1.1 0x02 6: 0x0001 [] -----d-- 1.2.840.113549.1.1.1 0x1a Last Update : 20090526080430Z > Notes: > * the path of PKCS#15 Application (3F005015) is hard coded in > pkcs15.c line 665 > * you could remove line 756 in pkcs15.c but I assume that something > will fail, because encoding of all other objects is wrong too > > Kind Regards > Andre Zepezauer > Kind regards, Viktor. -- Viktor Tarasov <viktor.tara...@opentrust.com> _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel