Hello

> In addition to trying to connect the card directly to the VM, you said
> you had built OpenSC-0.12.2. Could you try and build the new 0.13.0
> and test again?

Yes, I had built OpenSC-0.12.2 in linux (fedora 16) and wanted to initialize 
the card with pkcs15-init tool, 
but I was problem in connecting the card to the VM directly!
The VM recognizes the card as shared reader not any USB device, So 
OpenSC-0.13.0 test would not be successful too!

I've tested OpenSC-0.13.0 MSI on Windows7 and had the same problem in pkcs15 
initialization as 0.12.2 version!
If I could initialize the card in  linux or windows by any version of opensc, 
my problem was resolved...

Then because I had no success on windows using 0.13.0 and 0.12.2, I would try 
linux on VM. but the shared reader icon 
in VM doesn't let linux to recognize the reader as Omnikey CardMan 3x21 !!

> Ludovic had said it was strange that pcsc_scan worked but opensc-tool -a did 
> not.

Pcsc_scan finds the reader as Virtual CCID not OMNIKEY, but gets the card's ATR 
correctly.
Opensc-tool doesn't find the card to show the ATR, because the card reader is 
not known for it as OMNIKEY.


> If you could post some debugging output for OpenSC-0.13.0, that would be 
> helpful.
Debug info for OpenSC-0.13.0 on Windows is same as OpenSC-0.12.2 that the main 
reason is "File not found" as I had sent before.

> But since the VMware is changing the name on the card, 
> (and maybe idVendor and idPproduct) things might not work as expected.

How the VM should be set to not change the name?

Thanks beforehand for your helps; 


________________________________
 From: Douglas E. Engert <deeng...@anl.gov>
To: opensc-devel@lists.opensc-project.org 
Sent: Wednesday, 5 December 2012, 19:06:34
Subject: Re: [opensc-devel] The smart card reader is known as "VMware Virtual 
USB CCID 00 00" in linux ??!!
 



On 12/5/2012 8:55 AM, Rns Course wrote:

> Thank you Dr. Rousseau,

>

>> It is also possible to connect your reader directly to the VM as any

>> other USB device. It will then not be available from Windows.

>

> Yes, exactly!

> My problem is because of not disconnecting card reader from windows.

> Now, how should I connect the reader directly to the VM as any USB device?

>

> Since, upon connecting the reader to system, shared reader icon appears on 
> the VM task bar!

> Indeed, I have problem in VM setting to recognize the reader just as a USB 
> device.

> Could you guide me about this?

>

> Best Regards.


In addition to trying to connect the card directly to the VM, you said

you had built OpenSC-0.12.2. Could you try and build the new 0.13.0

and test again?


   Tarball and MSI installers can be found on github, sourceforge or the CI 
server:

  https://github.com/OpenSC/OpenSC/tags

  https://sourceforge.net/projects/opensc/files/OpenSC/

  https://opensc.fr/jenkins/


Ludovic had said it was strange that pcsc_scan worked but opensc-tool -a did 
not.


If you could post some debugging output for OpenSC-0.13.0, that would be 
helpful.

Either (1) modify the opensc.conf, changing the debug = 0; to debug = 7;

and uncomment the debug_file = line. (2) add a -v option to the opensc-tool

command line and output would be directed to stderr.


Although then vendor provided the ifdokccid.so driver, it might not be needed

as PCSClite says it is supported as CCID. But since the VMware is changing

the name on the card, (and maybe idVendor and idPproduct) things might

not work as expected.


>

> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

> *From:* Ludovic Rousseau <ludovic.rouss...@gmail.com>

> *To:* "opensc-devel@lists.opensc-project.org" 
> <opensc-devel@lists.opensc-project.org>

> *Sent:* Wednesday, 5 December 2012, 16:51:28

> *Subject:* Re: [opensc-devel] The smart card reader is known as "VMware 
> Virtual USB CCID 00 00" in linux ??!!

>

> 2012/12/5 Rns Course <rns_cou...@yahoo.com <mailto:rns_cou...@yahoo.com>>:

>  > Hi all;

>

> Hello,

>

>  > I have a smart card (SmartCafe Expert 3.2 72k) and I've loaded and

>  > initialized Muscle applet (0.9.11) on it.

>  > Now, I have problem with pkcs15 initializing...

>  > In Windows, I couldn't initialize the card using "pkcs15-init" tool, so I

>  > decided to compile opensc-0.12.2 in linux (fedora 16) and use "pkcs15-init"

>  > tool in linux.

>  >

>  > I have fedora on VMWare ( my host OS is Windows7) and installed Card Reader

>  > driver on fedora with name "ifdokccid.so" (my Card Reader is Omnikey 
>CardMan

>  > 3121).

>  > I've got and installed "pcsc-tools" package on linux and run "pcsc_scan"

>  > command on Terminal, the output was as below:

>  >

>  > 
>-----------------------------------------------------------------------------------------------------------

>  > PC/SC device scanner

>  > V 1.4.17 (c) 2001-2009, Ludovic Rousseau <ludovic.rouss...@free.fr 
><mailto:ludovic.rouss...@free.fr>>

>  > Compiled with PC/SC lite version: 1.6.6

>  > Scanning present readers...

>  > 0: VMware Virtual USB CCID 00 00

>  >

>  > Wed Dec  5 11:03:39 2012

>  >  Reader 0: VMware Virtual USB CCID 00 00

>  >  Card state: Card inserted,

>  >  ATR: 3B F7 18 00 00 80 31 FE 45 73 66 74 65 2D 6E 66 C4

>  >

>  > ATR: 3B F7 18 00 00 80 31 FE 45 73 66 74 65 2D 6E 66 C4

>  > + TS = 3B --> Direct Convention

>  > + T0 = F7, Y(1): 1111, K: 7 (historical bytes)

>  >  TA(1) = 18 --> Fi=372, Di=12, 31 cycles/ETU

>  >    129032 bits/s at 4 MHz, fMax for Fi = 5 MHz => 161290 bits/s

>  >  TB(1) = 00 --> VPP is not electrically connected

>  >  TC(1) = 00 --> Extra guard time: 0

>  >  TD(1) = 80 --> Y(i+1) = 1000, Protocol T = 0

>  > -----

>  >  TD(2) = 31 --> Y(i+1) = 0011, Protocol T = 1

>  > -----

>  >  TA(3) = FE --> IFSC: 254

>  >  TB(3) = 45 --> Block Waiting Integer: 4 - Character Waiting Integer: 5

>  > + Historical bytes: 73 66 74 65 2D 6E 66

>  >  Category indicator byte: 73 (proprietary format)

>  > + TCK = C4 (correct checksum)

>  >

>  > Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):

>  > 3B F7 18 00 00 80 31 FE 45 73 66 74 65 2D 6E 66 C4

>  > SmartCafe Expert 3.2 72K

>  > 
>------------------------------------------------------------------------------------------------------------------

>  >

>  > My problem is that VMWare finds the reader as:

>  >  Reader 0: VMware Virtual USB CCID 00 00

>  >

>  > NOT

>  >

>  > Reader 0: Omnikey CardMan 3121 00 00 !!

>  >

>  > So, the command "opensc-tool -a" has the following output:

>  >

>  > Using reader with a card: VMware Virtual USB CCID 00 00

>  > Failed to connect to card: Unresponsive card (correctly inserted?)

>  >

>  > When I connect the reader to the system, VMWare recognizes it as :

>  > "Shared OMNIKEY CardMan 3x21 0" in Removable Devices section of VM, so

>  > fedora finds it as  "VMware Virtual USB CCID 00 00" reader not Omnikey!

>  > How should the card reader be introduced in VM to solve this problem?

>  > I guess the problem is because of VMWare settings for card reader not

>  > OpenSC, but I've not found more related forum than here to ask this

>  > question;

>  >

>  > Could you help me please?

>

> VMWare uses a trick to show the smart card reader in the VM without

> disconnecting it from the host.

> VMWare uses PC/SC on Windows to access the reader and shows it as a

> fake CCID reader in the VM.

>

> It is strange that you can get the ATR using pcsc_scan but not using

> "opensc-tool -a".

>

> It is also possible to connect your reader directly to the VM as any

> other USB device. It will then not be available from Windows.

>

> Bye

>

> --

> Dr. Ludovic Rousseau

> _______________________________________________

> opensc-devel mailing list

> opensc-devel@lists.opensc-project.org 
> <mailto:opensc-devel@lists.opensc-project.org>

> http://www.opensc-project.org/mailman/listinfo/opensc-devel

>

>

>

>

> _______________________________________________

> opensc-devel mailing list

> opensc-devel@lists.opensc-project.org

> http://www.opensc-project.org/mailman/listinfo/opensc-devel

>


-- 


  Douglas E. Engert  <deeng...@anl.gov>

  Argonne National Laboratory

  9700 South Cass Avenue

  Argonne, Illinois  60439

  (630) 252-5444

_______________________________________________

opensc-devel mailing list

opensc-devel@lists.opensc-project.org

http://www.opensc-project.org/mailman/listinfo/opensc-devel
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to