From: Jakub J. <jj...@re...> - 2017-09-06 15:17:55
|
On Wed, 2017-09-06 at 16:36 +0200, Anton Gerasimov wrote: > I don't have a physical token, what I'm trying to do is to emulate > one > using (approximately) this manual [1]. Unfortunately Qemu seems to be > able to emulate just that one device type, so I don't have much > choise here. > > After some new tries pcscd gives some output that as far as I > understand > indicates that it has made contact to the virtual card (attached), > but > opensc-tool still only shows OpenCT readers. > > 'opensc-tool -a' doesn't show anything useful as well: > $ opensc-tool -a > Card not present. > > Regarding the versions: > > OpenSC: 0.16.0 > OS: Linux v4.4.60 (Openembedded/Yocto build). > OpenCT: 0.6.20 > PCSClite: 1.8.13 > > Thanks, > Anton > > [1]: https://github.com/qemu/qemu/blob/master/docs/ccid.txt If I remember well, I was able to make it working using the following guide with pcsc-lite and opensc (0.17.0 -- older versions do not support the CAC card, which is what is emulated there in libcacard project). https://www.spice-space.org/page/SmartcardUsage > On 09/06/2017 03:51 PM, Douglas E Engert wrote: > > Your command only list the readers, and it also says you are using > > the > > OpenCT > > rather the PCSClite. > > > > What versions of software are you using? > > OpenSC, OS, OpenCT, PCSClite? > > > > You said you are trying to use qemu. I use virtual Box, which > > presents > > to the > > virtual machine the real ID of a reader. I am not sure if qemu does > > that or presents > > a generic reader with ID 08e6:4433. > > > > The lsusb just says what type of reader. Are you using some token > > with > > a built in reader? > > If so what is it? > > > > What token are you using? The OpenSC driver Gemplus-GPK-16k is very > > old and was a card. > > > > > > to list the atr, try: > > opensc-tool -a > > > > Also look at using OpenSC debug in config file see: > > > > https://github.com/OpenSC/OpenSC/wiki/Using-OpenSC > > > > > > On 9/6/2017 7:48 AM, Anton Gerasimov wrote: > > > Hi, > > > > > > I'm trying to get OpenSC working with qemu (qemu-system-x86_64). > > > It > > > emulates Gemplus token (lsusb output: 'ID 08e6:4433 Gemalto (was > > > Gemplus) GemPC433-Swap'), and it is unclear to me if it is > > > supported in > > > OpenSC. It is listed as unsupported hardware [1], but the page > > > for > > > Gemplus itself says it is supported [2]. > > > > > > If it is not, I would be grateful for any hints about how qemu > > > and > > > OpenSC can be put to work together. opensc-tool --list-readers > > > currently > > > gives > > > > > > # Detected readers (openct) > > > Nr. Card Features Name > > > 0 No OpenCT reader (detached) > > > 1 No OpenCT reader (detached) > > > > > > which as far as I understands means it can't detect any devices. > > > > > > Thanks, > > > Anton Gerasimov > > > > > > [1] > > > https://github.com/OpenSC/OpenSC/wiki/Supported-hardware-(smart-c > > > ards-and-USB-tokens) > > > > > > [2] https://github.com/OpenSC/OpenSC/wiki/Gemplus-GPK-16k > > > > > ------------------------------------------------------------------- > ----------- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Opensc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensc-devel -- Jakub Jelen Software Engineer Security Technologies Red Hat, Inc. |