>I have a PKCS#15 Card of D-Trust (Germany) here. The Card is a Orga Micardo >2.1 >Authentication with PIN1 (Reference 01) to the card via ADPU command works great. >When I now change the Reference to 82 (for the PIN2) and send the same commands
>00 A4 04 0C 0C A0 00 00 00 63 50 4B 43 53 2D 31 35 00 20 00 82 08 35 35 33 39 34 35 00 00 >I am getting always the answer 6A 88 >Does somebody know what I a doing wrong here? Hi, 6A 88 means that the verfiy command does not found the key reference. You change to the PKCS15 dir (which is 3f00/5015) and try to verify the 82 reference. And that means that your try to verify the key reference 02 in the local dir (80 -> local dir ). But key PINs are not stored in this dir. D-Trust uses following PIN references. PIN1 (basic i guess?) is in 3f00 PIN2 (specific) is in 3f00/4016 For authentificate the PIN2 you have to change to the right directory 00 a4 00 00 02 3f 00 => change to 3f00 00 a4 01 00 02 40 16 => change to 4016 And then send the verify command 00 20 00 82 08 35 35 33 39 34 35 00 00 => verify PIN2 in local dir. Jürgen _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel