[Pcsclite-muscle] Different behaviour with Select MF on Omnikey 5427 and 5022
Stephan Guilloux
stephan.guilloux at crisalid.com
Tue Nov 3 09:51:26 EST 2020
Spent some time to reduce the code to the strict minimum, and it comes
almost the same as
https://github.com/ebfe/scard/blob/master/example_test.go
(traces are a bit different though)
APDU is take from the same example:
0x00, 0xa4, 0x00, 0x0c, 0x02, 0x3f, 0x00
And the capture from this testing tool
[root at Raspberry ~]$ ./select-mf
Found 1 readers:
[0] HID Global OMNIKEY 5022 Smart Card Reader
(KJ-16145171-1919-000030) 00 00
Waiting for a Card ...
Card inserted on reader 'HID Global OMNIKEY 5022 Smart Card
Reader (KJ-16145171-1919-000030) 00 00'.
Calling card.Transmit([]byte{0x00, 0xa4, 0x00, 0x0c, 0x02, 0x3f,
0x00}) - Select MF
card.Transmit() response: []byte{0x6a, 0x81}
Waiting for card removal ...
Card removed !
[root at Raspberry ~]$
[root at Raspberry ~]$ ./select-mf
Found 1 readers:
[0] HID OMNIKEY 5427 CK (01010053484D37353001395E34176930) 00 00
Waiting for a Card ...
Card inserted on reader 'HID OMNIKEY 5427 CK
(01010053484D37353001395E34176930) 00 00'.
Calling card.Transmit([]byte{0x00, 0xa4, 0x00, 0x0c, 0x02, 0x3f,
0x00}) - Select MF
card.Transmit() failed: scard: Transaction failed.
Waiting for card removal ...
Card removed !
[root at Raspberry ~]$
Stéphan GUILLOUX
Ingénieur Développement Sr
40 avenue de la libération 57160 Châtel St-Germain
Tél. 03 87 65 98 80 / poste 221
stephan.guilloux at crisalid.com
LES LOGICIELS QUI VOUS DONNENT DES AILES ! - www.crisalid.com
Le mar. 3 nov. 2020 à 14:08, Stephan Guilloux
<stephan.guilloux at crisalid.com> a écrit :
>
> It's yours, PCSCD and CCID, with the mentioned GO layer (I did not
> even think the proprietary driver could work with it, by the way).
> Anyway, in case this could be important too, the application is
> running on Linux / Raspberry.
>
> Stéphan.
>
>
> Stéphan GUILLOUX
> Ingénieur Développement Sr
>
> 40 avenue de la libération 57160 Châtel St-Germain
> Tél. 03 87 65 98 80 / poste 221
> stephan.guilloux at crisalid.com
>
> LES LOGICIELS QUI VOUS DONNENT DES AILES ! - www.crisalid.com
>
>
>
>
> Le mar. 3 nov. 2020 à 13:33, Ludovic Rousseau
> <ludovic.rousseau at gmail.com> a écrit :
> >
> > Le mar. 3 nov. 2020 à 11:23, Stephan Guilloux
> > <stephan.guilloux at crisalid.com> a écrit :
> > > Hello all,
> >
> > Hello,
> >
> > > I'm trying to figure out why these 2 readers don't have the same
> > > behaviour, regarding Select MF.
> > >
> > > I got 2cards with me:
> > > - card #1: both readers can perform Select MF correctly.
> > > - card #2: 5022 can perform Select MF, but 5427 fails, with status
> > > "scard: Transaction failed".
> > >
> > > Any hint about this ?
> >
> > One important parameter here is that you are using contactless cards.
> >
> > What smart card reader driver do you use?
> > My CCID driver or the proprietary HID/Omnikey driver?
> >
> > Bye
> >
> > --
> > Dr. Ludovic Rousseau
> >
> > _______________________________________________
> > pcsclite-muscle mailing list
> > pcsclite-muscle at lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/pcsclite-muscle
More information about the pcsclite-muscle
mailing list