The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Rns Course
Hi all;

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 <[hidden email]>
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?
TIA.

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Ludovic Rousseau
2012/12/5 Rns Course <[hidden email]>:
> 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 <[hidden email]>
> 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
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Rns Course
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.


From: Ludovic Rousseau <[hidden email]>
To: "[hidden email]" <[hidden email]>
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 <[hidden email]>:
> 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 <[hidden email]>
> 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 mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Douglas E. Engert


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 <[hidden email]>
> *To:* "[hidden email]" <[hidden email]>
> *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 <[hidden email] <mailto:[hidden email]>>:
>  > 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 <[hidden email] <mailto:[hidden email]>>
>  > 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
> [hidden email] <mailto:[hidden email]>
> http://www.opensc-project.org/mailman/listinfo/opensc-devel
>
>
>
>
> _______________________________________________
> opensc-devel mailing list
> [hidden email]
> http://www.opensc-project.org/mailman/listinfo/opensc-devel
>

--

  Douglas E. Engert  <[hidden email]>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Rns Course
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 <[hidden email]>
To: [hidden email]
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:

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 <[hidden email]>
> *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 <[hidden email] <mailto:[hidden email]>>:
>  > 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 <[hidden email] <mailto:[hidden email]>>
>  > 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 mailing list
>

--

  Douglas E. Engert  <[hidden email]>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list



_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Ludovic Rousseau
2012/12/7 Rns Course <[hidden email]>:
>> 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.

opensc-tool will use any connected reader. Unless you gave a specific
name but that was not explicit in your first email.

opensc-tool can see the (virtual) reader. But failed to connect to the card.

Bye

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Rns Course
Thanks;
opensc-tool can see the (virtual) reader. But failed to connect to the card.

Now, what's the solution?


From: Ludovic Rousseau <[hidden email]>
To: Rns Course <[hidden email]>
Cc: "[hidden email]" <[hidden email]>
Sent: Saturday, 8 December 2012, 15:54:22
Subject: Re: [opensc-devel] The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

2012/12/7 Rns Course <[hidden email]>:
>> 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.

opensc-tool will use any connected reader. Unless you gave a specific
name but that was not explicit in your first email.

opensc-tool can see the (virtual) reader. But failed to connect to the card.

Bye

--
Dr. Ludovic Rousseau



_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Ludovic Rousseau
2012/12/9 Rns Course <[hidden email]>:
> Thanks;
>> opensc-tool can see the (virtual) reader. But failed to connect to the
>> card.
>
> Now, what's the solution?

Debug the problem.

Generate a pcscd trace as described in [1] for the "opensc-tool -a" command.

Bye

[1] http://pcsclite.alioth.debian.org/pcsclite.html#support

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Rns Course

Hello

Here's the trace:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Versions

smart card reader driver name and version:

The output of pcsc_scan:
VMware Virtual USB CCID 00 00

(ifdokccid_lnx_i686-3.7.0)
------------------------------------------
pcsc-lite version:

The output of the command "pcscd -v":
1.8.2
----------------------------------------------

smart card reader name:
(HID) Omnikey CardMan 3121 
---------------------------------------------

the output of the command "/usr/sbin/pcscd --version":

pcsc-lite version 1.7.4.
Copyright (C) 1999-2002 by David Corcoran <[hidden email]>.
Copyright (C) 2001-2011 by Ludovic Rousseau <[hidden email]>.
Copyright (C) 2003-2004 by Damien Sauveron <[hidden email]>.
Report bugs to <[hidden email]>.
Enabled features: Linux i386-redhat-linux-gnu serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/etc/reader.conf.d

+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Platform

Operating system name and version:
Fedora 16 (x86)

Smart card middleware name and version:
Muscle Applet (CardEdge.cap 0.9.11)

Reader manufacturer name and reader model name:
Omnikey cardMan 3121

Smart card name:
G&D SmartCafe Expert 3.2 72k

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

Also I've attached "opensc-debug.log" and "log.txt" to this email.

I guess the problem is because of pcscd version (1.8.2 or 1.7.4)?!
Am I right? (It's confusing!!)

Best Regards.

From: Ludovic Rousseau <[hidden email]>
To: Rns Course <[hidden email]>
Cc: "[hidden email]" <[hidden email]>
Sent: Sunday, 9 December 2012, 12:42:24
Subject: Re: [opensc-devel] The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

2012/12/9 Rns Course <[hidden email]>:
> Thanks;
>> opensc-tool can see the (virtual) reader. But failed to connect to the
>> card.
>
> Now, what's the solution?

Debug the problem.

Generate a pcscd trace as described in [1] for the "opensc-tool -a" command.

Bye


--
Dr. Ludovic Rousseau



_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

log.txt (1K) Download Attachment
opensc-debug.log (14K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Fw: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Rns Course
Dr. Rousseau
Could you point to pkcs15-init problem in window (opensc-0.12.2 or 0.13.0 msi) too?!
How should I fix that?

TIA.


From: Rns Course <[hidden email]>
To: "[hidden email]" <[hidden email]>
Sent: Sunday, 9 December 2012, 15:44:41
Subject: Re: [opensc-devel] The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!


Hello

Here's the trace:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Versions

smart card reader driver name and version:

The output of pcsc_scan:
VMware Virtual USB CCID 00 00

(ifdokccid_lnx_i686-3.7.0)
------------------------------------------
pcsc-lite version:

The output of the command "pcscd -v":
1.8.2
----------------------------------------------

smart card reader name:
(HID) Omnikey CardMan 3121 
---------------------------------------------

the output of the command "/usr/sbin/pcscd --version":

pcsc-lite version 1.7.4.
Copyright (C) 1999-2002 by David Corcoran <[hidden email]>.
Copyright (C) 2001-2011 by Ludovic Rousseau <[hidden email]>.
Copyright (C) 2003-2004 by Damien Sauveron <[hidden email]>.
Report bugs to <[hidden email]>.
Enabled features: Linux i386-redhat-linux-gnu serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/etc/reader.conf.d

+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Platform

Operating system name and version:
Fedora 16 (x86)

Smart card middleware name and version:
Muscle Applet (CardEdge.cap 0.9.11)

Reader manufacturer name and reader model name:
Omnikey cardMan 3121

Smart card name:
G&D SmartCafe Expert 3.2 72k

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

Also I've attached "opensc-debug.log" and "log.txt" to this email.

I guess the problem is because of pcscd version (1.8.2 or 1.7.4)?!
Am I right? (It's confusing!!)

Best Regards.

From: Ludovic Rousseau <[hidden email]>
To: Rns Course <[hidden email]>
Cc: "[hidden email]" <[hidden email]>
Sent: Sunday, 9 December 2012, 12:42:24
Subject: Re: [opensc-devel] The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

2012/12/9 Rns Course <[hidden email]>:
> Thanks;
>> opensc-tool can see the (virtual) reader. But failed to connect to the
>> card.
>
> Now, what's the solution?

Debug the problem.

Generate a pcscd trace as described in [1] for the "opensc-tool -a" command.

Bye


--
Dr. Ludovic Rousseau



_______________________________________________
opensc-devel mailing list





_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Ludovic Rousseau
In reply to this post by Rns Course
2012/12/9 Rns Course <[hidden email]>:

> Hello
>
> Here's the trace:
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Versions
>
> smart card reader driver name and version:
>
> The output of pcsc_scan:
> VMware Virtual USB CCID 00 00
>
> (ifdokccid_lnx_i686-3.7.0)
> ------------------------------------------
> pcsc-lite version:
>
> The output of the command "pcscd -v":
> 1.8.2

I can't believe "pcscd -v" returned only one line.

> the output of the command "/usr/sbin/pcscd --version":
>
> pcsc-lite version 1.7.4.
> Copyright (C) 1999-2002 by David Corcoran <[hidden email]>.
> Copyright (C) 2001-2011 by Ludovic Rousseau <[hidden email]>.
> Copyright (C) 2003-2004 by Damien Sauveron <[hidden email]>.
> Report bugs to <[hidden email]>.
> Enabled features: Linux i386-redhat-linux-gnu serial usb libudev
> usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd
> configdir=/etc/reader.conf.d

And now you have a different version of pcscd.

> I guess the problem is because of pcscd version (1.8.2 or 1.7.4)?!
> Am I right? (It's confusing!!)

Your pcsc-lite configuration is completely broken.
Recreate a clean fedora 16 virtual machine from zero and try again.

Bye

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Rns Course
> I can't believe "pcscd -v" returned only one line.
No, returned the following result. but I put only first line.
pcsc-lite version 1.8.2.
Copyright (C) 1999-2002 by David Corcoran <[hidden email]>.
Copyright (C) 2001-2011 by Ludovic Rousseau <[hidden email]>.
Copyright (C) 2003-2004 by Damien Sauveron <[hidden email]>.
Report bugs to <[hidden email]>.
Enabled features: Linux i686-pc-linux-gnu serial usb libudev usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/usr/local/etc/reader.conf.d

> Your pcsc-lite configuration is completely broken.
> Recreate a clean fedora 16 virtual machine from zero and try again.
Yes, Thank you.
The problem is due to pcsclite.
Your pcsc trace template that linked it, gave me the clue!
Probably, I'll test it on OpenSUSE ASAP and tell the result here.

Another request of you:
what's your opinion about  windows version of opensc (0.12.2 or 0.13.0) and the problem "File not found" in pkcs15 initialization?

Sincerely.



From: Ludovic Rousseau <[hidden email]>
To: Rns Course <[hidden email]>
Cc: "[hidden email]" <[hidden email]>
Sent: Sunday, 9 December 2012, 17:37:49
Subject: Re: [opensc-devel] The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

2012/12/9 Rns Course <[hidden email]>:
> Hello
>
> Here's the trace:
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Versions
>
> smart card reader driver name and version:
>
> The output of pcsc_scan:
> VMware Virtual USB CCID 00 00
>
> (ifdokccid_lnx_i686-3.7.0)
> ------------------------------------------
> pcsc-lite version:
>
> The output of the command "pcscd -v":
> 1.8.2

I can't believe "pcscd -v" returned only one line.

> the output of the command "/usr/sbin/pcscd --version":
>
> pcsc-lite version 1.7.4.
> Copyright (C) 1999-2002 by David Corcoran <[hidden email]>.
> Copyright (C) 2001-2011 by Ludovic Rousseau <[hidden email]>.
> Copyright (C) 2003-2004 by Damien Sauveron <[hidden email]>.
> Report bugs to <[hidden email]>.
> Enabled features: Linux i386-redhat-linux-gnu serial usb libudev
> usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd
> configdir=/etc/reader.conf.d

And now you have a different version of pcscd.

> I guess the problem is because of pcscd version (1.8.2 or 1.7.4)?!
> Am I right? (It's confusing!!)

Your pcsc-lite configuration is completely broken.
Recreate a clean fedora 16 virtual machine from zero and try again.

Bye

--
Dr. Ludovic Rousseau



_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Ludovic Rousseau
2012/12/9 Rns Course <[hidden email]>:
> Another request of you:
> what's your opinion about  windows version of opensc (0.12.2 or 0.13.0) and
> the problem "File not found" in pkcs15 initialization?

No idea.

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Anders Rundgren
In reply to this post by Rns Course
Page #2 of the following document shows what the *real* problem is:

  http://webpki.org/papers/keygen2/sks-keygen2-exec-level-presentation.pdf

Anders
http://code.google.com/p/openkeystore



_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Douglas E. Engert
In reply to this post by Ludovic Rousseau


On 12/9/2012 9:56 AM, Ludovic Rousseau wrote:
> 2012/12/9 Rns Course <[hidden email]>:
>> Another request of you:
>> what's your opinion about  windows version of opensc (0.12.2 or 0.13.0) and
>> the problem "File not found" in pkcs15 initialization?

Why use 0.13.0:
   o 0.13.0 has many more fixes.
   o You will get better responses from this list if you test with 0.13.0.
   o Any fixes will be applied to 0.13.0,

You may be fighting 4 different problems:

  (1) VMware remaps the card card name, and causes confusion with pcsc.

      If you could use a real machine that would eliminate this problem for now.

  (2) You said:
     > installed Card Reader driver on fedora with name "ifdokccid.so"
     > (my Card Reader is Omnikey CardMan 3121).

     Is this really needed on unix? I thought pcscd would use its own
     libccid.so for this reader. If this is a vendor provided library,
     what version are you using?

     Can you try without this file.

  (3) You said:
     > I've tested OpenSC-0.13.0 MSI on Windows7 and had the same problem in
     > pkcs15 initialization as 0.12.2 version!

     This would indicate that your real problem is with opensc most likely
     not recognizing the card. (The vendor's window driver works with windows
     but the venodor's unix driver may not work with the version of pcscd on
     fedora. The introduction of VMware just complicates the problems.

  (4) You said the card is reported:
      >   ATR: 3B F7 18 00 00 80 31 FE 45 73 66 74 65 2D 6E 66 C4
      > 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

I don't think this card is supported by OpenSC. In the OpenSC source, any version
look at the src/libopensc directory. The supported cards all have a module
names card-*.c  It might be possible that the iso7816.c directly.
Or you could add an entry  in the opensc.conf to force the ATR to be mapped
to a specific supported card.


See the discussion from Aug 2011 on the OpenSC -devel lists:

  [opensc-devel] SmartCafe Expert 3.2 72K works fine in some versions but is an "unsupported card" in other versions.

It is not clear if this was ever resolved.













In a previous note you said:
>> Opensc-tool doesn't find the card to show the ATR, because the card reader
>> is not known for it as OMNIKEY.




>
> No idea.
>

--

  Douglas E. Engert  <[hidden email]>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Douglas E. Engert
More on this.

Looking at the trace you did send on 12/9/2012:
line 418: 0x7fff706e5cc0 14:39:03.351 [pkcs15-tool] card.c:180:sc_connect_card: trying driver: muscle
causes the muscle_match_card in card-muscle.c to try and select the muscle applet with APDU:
00 A4 04 00 05 A0 00 00 00 01
with response:
90 00
It then reads some version information for the applet on the card APDU:
B0 3C 00 00 40
with response:
00 01 00 05 00 00 75 30 00 00 5E F6 02 02 00 00
90 00

It is Successful, but response[0] == 0x00, but muscle_match_card is looking for 0x01
so it does not recognize the applet.

Can you check how you loaded the applet.


On 12/10/2012 9:54 AM, Douglas E. Engert wrote:

>
>
> On 12/9/2012 9:56 AM, Ludovic Rousseau wrote:
>> 2012/12/9 Rns Course <[hidden email]>:
>>> Another request of you:
>>> what's your opinion about  windows version of opensc (0.12.2 or 0.13.0) and
>>> the problem "File not found" in pkcs15 initialization?
>
> Why use 0.13.0:
>     o 0.13.0 has many more fixes.
>     o You will get better responses from this list if you test with 0.13.0.
>     o Any fixes will be applied to 0.13.0,
>
> You may be fighting 4 different problems:
>
>    (1) VMware remaps the card card name, and causes confusion with pcsc.
>
>        If you could use a real machine that would eliminate this problem for now.
>
>    (2) You said:
>       > installed Card Reader driver on fedora with name "ifdokccid.so"
>       > (my Card Reader is Omnikey CardMan 3121).
>
>       Is this really needed on unix? I thought pcscd would use its own
>       libccid.so for this reader. If this is a vendor provided library,
>       what version are you using?
>
>       Can you try without this file.
>
>    (3) You said:
>       > I've tested OpenSC-0.13.0 MSI on Windows7 and had the same problem in
>       > pkcs15 initialization as 0.12.2 version!
>
>       This would indicate that your real problem is with opensc most likely
>       not recognizing the card. (The vendor's window driver works with windows
>       but the venodor's unix driver may not work with the version of pcscd on
>       fedora. The introduction of VMware just complicates the problems.
>
>    (4) You said the card is reported:
>        >   ATR: 3B F7 18 00 00 80 31 FE 45 73 66 74 65 2D 6E 66 C4
>        > 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
>
> I don't think this card is supported by OpenSC. In the OpenSC source, any version
> look at the src/libopensc directory. The supported cards all have a module
> names card-*.c  It might be possible that the iso7816.c directly.
> Or you could add an entry  in the opensc.conf to force the ATR to be mapped
> to a specific supported card.
>
>
> See the discussion from Aug 2011 on the OpenSC -devel lists:
>
>    [opensc-devel] SmartCafe Expert 3.2 72K works fine in some versions but is an "unsupported card" in other versions.
>
> It is not clear if this was ever resolved.
>
>
>
>
>
>
>
>
>
>
>
>
>
> In a previous note you said:
>>> Opensc-tool doesn't find the card to show the ATR, because the card reader
>>> is not known for it as OMNIKEY.
>
>
>
>
>>
>> No idea.
>>
>

--

  Douglas E. Engert  <[hidden email]>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Rns Course
In reply to this post by Douglas E. Engert
Hello and thanks for your complete and useful comment;

>  (1) VMware remaps the card card name, and causes confusion with pcsc.
>      If you could use a real machine that would eliminate this problem for now.
I've switched to linux just because of testing pkcs15-init (opensc-0.12.2) in it as an alternative work, since I didn't success in windows (with opensc-0.12.2 & 0.13.0).
I only want to initialize the card using pkcs15-init ( Windows or Linux? It's not important. I can test on windows completely! )
Now, I'm going to test the card with opensc-0.13.0 on windows only.


> (2) You said:
>    > installed Card Reader driver on fedora with name "ifdokccid.so"
>    > (my Card Reader is Omnikey CardMan 3121).

>    Is this really needed on unix? I thought pcscd would use its own
>    libccid.so for this reader. 

Apparently not!

>    If this is a vendor provided library, what version are you using? Can you try without this file?
Version 3.7.0, I added smartcard-list.txt on Dr. Ludovic Rousseau site that caused "pcsc_scan" recognizes my card (SmartCafe Expert 3.2 72k).
It seems there was no need to  "ifdokccid.so" driver!

>  (3) You said:
>    > I've tested OpenSC-0.13.0 MSI on Windows7 and had the same problem in
>    > pkcs15 initialization as 0.12.2 version!

>    This would indicate that your real problem is with opensc most likely
>    not recognizing the card. (The vendor's window driver works with windows 
>    but the vendor's unix driver may not work with the version of pcscd on
>    fedora. The introduction of VMware just complicates the problems.
Yes, exactly.

>  (4) You said the card is reported:
>      >  ATR: 3B F7 18 00 00 80 31 FE 45 73 66 74 65 2D 6E 66 C4
>      > 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

> I don't think this card is supported by OpenSC. In the OpenSC source, any version
> look at the src/libopensc directory. The supported cards all have a module
> names card-*.c  It might be possible that the iso7816.c directly.

> Or you could add an entry  in the opensc.conf to force the ATR to be mapped
> to a specific supported card.
Yes, I did it.
My entry in opensc.conf:

card_atr 3b:f7:18:00:00:80:31:fe:45:73:66:74:65:2d:6e:66:c4 {
name = "MyCard";
        driver = "muscle";
}

> See the discussion from Aug 2011 on the OpenSC -devel lists:
>  [opensc-devel] SmartCafe Expert 3.2 72K works fine in some versions but is an "unsupported card" in other versions.
> It is not clear if this was ever resolved.
I already had his problem too. I solved it by putting "muscle.profile" in profiles folder of opensc installation directory.

Thanks again.

From: Douglas E. Engert <[hidden email]>
To: [hidden email]
Sent: Monday, 10 December 2012, 19:24:53
Subject: Re: [opensc-devel] The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!



On 12/9/2012 9:56 AM, Ludovic Rousseau wrote:
> 2012/12/9 Rns Course <[hidden email]>:
>> Another request of you:
>> what's your opinion about  windows version of opensc (0.12.2 or 0.13.0) and
>> the problem "File not found" in pkcs15 initialization?

Why use 0.13.0:
  o 0.13.0 has many more fixes.
  o You will get better responses from this list if you test with 0.13.0.
  o Any fixes will be applied to 0.13.0,

You may be fighting 4 different problems:

  (1) VMware remaps the card card name, and causes confusion with pcsc.

      If you could use a real machine that would eliminate this problem for now.

  (2) You said:
    > installed Card Reader driver on fedora with name "ifdokccid.so"
    > (my Card Reader is Omnikey CardMan 3121).

    Is this really needed on unix? I thought pcscd would use its own
    libccid.so for this reader. If this is a vendor provided library,
    what version are you using?

    Can you try without this file.

  (3) You said:
    > I've tested OpenSC-0.13.0 MSI on Windows7 and had the same problem in
    > pkcs15 initialization as 0.12.2 version!

    This would indicate that your real problem is with opensc most likely
    not recognizing the card. (The vendor's window driver works with windows
    but the venodor's unix driver may not work with the version of pcscd on
    fedora. The introduction of VMware just complicates the problems.

  (4) You said the card is reported:
      >  ATR: 3B F7 18 00 00 80 31 FE 45 73 66 74 65 2D 6E 66 C4
      > 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

I don't think this card is supported by OpenSC. In the OpenSC source, any version
look at the src/libopensc directory. The supported cards all have a module
names card-*.c  It might be possible that the iso7816.c directly.
Or you could add an entry in the opensc.conf to force the ATR to be mapped
to a specific supported card.


See the discussion from Aug 2011 on the OpenSC -devel lists:

  [opensc-devel] SmartCafe Expert 3.2 72K works fine in some versions but is an "unsupported card" in other versions.

It is not clear if this was ever resolved.













In a previous note you said:
>> Opensc-tool doesn't find the card to show the ATR, because the card reader
>> is not known for it as OMNIKEY.




>
> No idea.
>

--

  Douglas E. Engert  <[hidden email]>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list



_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: The smart card reader is known as "VMware Virtual USB CCID 00 00" in linux ??!!

Ludovic Rousseau
Hello,

2012/12/12 Rns Course <[hidden email]>:
>> (2) You said:
>>    > installed Card Reader driver on fedora with name "ifdokccid.so"
>>    > (my Card Reader is Omnikey CardMan 3121).
>
>>    Is this really needed on unix? I thought pcscd would use its own
>>    libccid.so for this reader.
>
> Apparently not!

The Omnikey CardMan 3121 reader is supported by my CCID driver. See
http://pcsclite.alioth.debian.org/ccid/supported.html#0x076B0x3021

The vmware virtual reader is also supported by my CCID driver. See
http://pcsclite.alioth.debian.org/ccid/shouldwork.html#0x0E0F0x0004

>>    If this is a vendor provided library, what version are you using? Can
>> you try without this file?
> Version 3.7.0, I added smartcard-list.txt on Dr. Ludovic Rousseau site that
> caused "pcsc_scan" recognizes my card (SmartCafe Expert 3.2 72k).
> It seems there was no need to  "ifdokccid.so" driver!

ifdokccid.so should not be needed. But it should not create problems
if you install it and should be used by pcscd instead of my libccid
driver.

I am happy your problem is now fixed by a correct configuration of OpenSC.

Bye

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel