Newbie help

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

Newbie help

Ben Keeley
Hi,

Was given an Akasa AK-ICR-05 smart card reader and 2x Feitian PKI
Cards.  I'm running Ubuntu 10.10 and am trying to follow this guide but
having real problems

http://ubuntuforums.org/showthread.php?t=1447218

lsusb sees the device as
Bus 002 Device 002: ID 0bda:0161 Realtek Semiconductor Corp. Mass
Storage Device


And when running pcsc_tool see this:
  pcsc_scan
PC/SC device scanner
V 1.4.16 (c) 2001-2009, Ludovic Rousseau <[hidden email]>
Compiled with PC/SC lite version: 1.5.3
Scanning present readers...
Waiting for the first reader...^C

Tried remove and reinstalling card - no joy.

opensc-tool --list-readers
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
[opensc-tool] reader-pcsc.c:896:pcsc_detect_readers: SCardListReaders
failed: 0x8010002e
[opensc-tool] reader-pcsc.c:1015:pcsc_detect_readers: returning with: No
readers found
Readers known about:
Nr.    Driver     Name
0      openct     OpenCT reader (detached)
1      openct     OpenCT reader (detached)


What am I doing wrong?

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

Re: Newbie help

Andre Zepezauer
Hello,

please post output of: lsusb -v -d 0bda:0161

On Fri, 2011-01-14 at 16:08 +0000, Ben Keeley wrote:

> Hi,
>
> Was given an Akasa AK-ICR-05 smart card reader and 2x Feitian PKI
> Cards.  I'm running Ubuntu 10.10 and am trying to follow this guide but
> having real problems
>
> http://ubuntuforums.org/showthread.php?t=1447218
>
> lsusb sees the device as
> Bus 002 Device 002: ID 0bda:0161 Realtek Semiconductor Corp. Mass
> Storage Device
>
>
> And when running pcsc_tool see this:
>   pcsc_scan
> PC/SC device scanner
> V 1.4.16 (c) 2001-2009, Ludovic Rousseau <[hidden email]>
> Compiled with PC/SC lite version: 1.5.3
> Scanning present readers...
> Waiting for the first reader...^C
>
> Tried remove and reinstalling card - no joy.
>
> opensc-tool --list-readers
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> [opensc-tool] reader-pcsc.c:896:pcsc_detect_readers: SCardListReaders
> failed: 0x8010002e
> [opensc-tool] reader-pcsc.c:1015:pcsc_detect_readers: returning with: No
> readers found
> Readers known about:
> Nr.    Driver     Name
> 0      openct     OpenCT reader (detached)
> 1      openct     OpenCT reader (detached)
>
>
> What am I doing wrong?
>
> Thank you
> _______________________________________________
> opensc-user mailing list
> [hidden email]
> http://www.opensc-project.org/mailman/listinfo/opensc-user

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

Re: Newbie help

Ben Keeley
Thank you....




ben@WOPR:~$ lsusb -v -d 0bda:0161

Bus 002 Device 002: ID 0bda:0161 Realtek Semiconductor Corp. Mass
Storage Device
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            0 (Defined at Interface level)
   bDeviceSubClass         0
   bDeviceProtocol         0
   bMaxPacketSize0        64
   idVendor           0x0bda Realtek Semiconductor Corp.
   idProduct          0x0161 Mass Storage Device
   bcdDevice           61.10
   iManufacturer           1
   iProduct                2
   iSerial                 3
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength          116
     bNumInterfaces          2
     bConfigurationValue     1
     iConfiguration          4
     bmAttributes         0x80
       (Bus Powered)
     MaxPower              500mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           3
       bInterfaceClass        11 Chip/SmartCard
       bInterfaceSubClass      0
       bInterfaceProtocol      0
       iInterface              6
       ChipCard Interface Descriptor:
         bLength                54
         bDescriptorType        33
         bcdCCID              1.10  (Warning: Only accurate for version 1.0)
         nMaxSlotIndex           0
         bVoltageSupport         7  5.0V 3.0V 1.8V
         dwProtocols             3  T=0 T=1
         dwDefaultClock       3750
         dwMaxiumumClock      7500
         bNumClockSupported      0
         dwDataRate          10080 bps
         dwMaxDataRate      312500 bps
         bNumDataRatesSupp.      0
         dwMaxIFSD             254
         dwSyncProtocols  00000000
         dwMechanical     00000000
         dwFeatures       00010030
           Auto clock change
           Auto baud rate change
           TPDU level exchange
         dwMaxCCIDMsgLen       271
         bClassGetResponse      00
         bClassEnvelope         00
         wlcdLayout           none
         bPINSupport             0
         bMaxCCIDBusySlots       1
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x83  EP 3 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0040  1x 64 bytes
         bInterval               8
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x05  EP 5 OUT
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x86  EP 6 IN
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               0
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        1
       bAlternateSetting       0
       bNumEndpoints           2
       bInterfaceClass         8 Mass Storage
       bInterfaceSubClass      6 SCSI
       bInterfaceProtocol     80 Bulk (Zip)
       iInterface              5
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x01  EP 1 OUT
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x82  EP 2 IN
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               0
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)

On 14/01/11 16:30, Andre Zepezauer wrote:
> lsusb -v -d 0bda:0161
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help

Jean-Michel Pouré - GOOZE
In reply to this post by Ben Keeley
Le vendredi 14 janvier 2011 à 16:08 +0000, Ben Keeley a écrit :
>
> Was given an Akasa AK-ICR-05 smart card reader and 2x Feitian PKI
> Cards.  I'm running Ubuntu 10.10 and am trying to follow this guide
> but
> having real problems

The Akasa AK-ICR-05 seems to be a Flash card reader, not smartcard
reader. You need a PCSC + CCID reader.

Kind regards,
--
                  Jean-Michel Pouré - Gooze - http://www.gooze.eu

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

Re: Newbie help

Ben Keeley
This is what I've got, has a smartcard reader slot...

http://www.akasa.co.uk/update.php?tpl=product/product.detail.tpl&no=181&type=Card%20Reader/Hub&type_sub=Card%20Reader&model=AK-ICR-05

Thanks

On 14/01/11 17:09, Jean-Michel Pouré - GOOZE wrote:
> Le vendredi 14 janvier 2011 à 16:08 +0000, Ben Keeley a écrit :
>> Was given an Akasa AK-ICR-05 smart card reader and 2x Feitian PKI
>> Cards.  I'm running Ubuntu 10.10 and am trying to follow this guide
>> but
>> having real problems
> The Akasa AK-ICR-05 seems to be a Flash card reader, not smartcard
> reader. You need a PCSC + CCID reader.
>
> Kind regards,
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help

Ludovic Rousseau
In reply to this post by Ben Keeley
2011/1/14 Ben Keeley <[hidden email]>:

> ben@WOPR:~$ lsusb -v -d 0bda:0161
>
> Bus 002 Device 002: ID 0bda:0161 Realtek Semiconductor Corp. Mass
> Storage Device
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               2.00
>   bDeviceClass            0 (Defined at Interface level)
>   bDeviceSubClass         0
>   bDeviceProtocol         0
>   bMaxPacketSize0        64
>   idVendor           0x0bda Realtek Semiconductor Corp.
>   idProduct          0x0161 Mass Storage Device
>   bcdDevice           61.10
>   iManufacturer           1
>   iProduct                2
>   iSerial                 3
>   bNumConfigurations      1
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength          116
>     bNumInterfaces          2
>     bConfigurationValue     1
>     iConfiguration          4
>     bmAttributes         0x80
>       (Bus Powered)
>     MaxPower              500mA
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           3
>       bInterfaceClass        11 Chip/SmartCard

Good. One interface is CCID compliant.

Follow http://pcsclite.alioth.debian.org/ccid.html#CCID_compliant

Bye

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

Re: Newbie help

Andre Zepezauer
In reply to this post by Ben Keeley
OK, lsusb dump looks good. Try editing of:
/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist

Add the following two elements and leave everything else as is:
<string>0x0BDA</string>
<string>0x0161</string>

The result should look like this:

<key>ifdVendorID</key>
<array>
        <string>0x0BDA</string>
        <!-- more strings -->
</array>

<key>ifdProductID</key>
<array>
        <string>0x0161</string>
        <!-- more strings -->
</array>


On Fri, 2011-01-14 at 16:34 +0000, Ben Keeley wrote:

> Thank you....
>
>
>
>
> ben@WOPR:~$ lsusb -v -d 0bda:0161
>
> Bus 002 Device 002: ID 0bda:0161 Realtek Semiconductor Corp. Mass
> Storage Device
> Device Descriptor:
>    bLength                18
>    bDescriptorType         1
>    bcdUSB               2.00
>    bDeviceClass            0 (Defined at Interface level)
>    bDeviceSubClass         0
>    bDeviceProtocol         0
>    bMaxPacketSize0        64
>    idVendor           0x0bda Realtek Semiconductor Corp.
>    idProduct          0x0161 Mass Storage Device
>    bcdDevice           61.10
>    iManufacturer           1
>    iProduct                2
>    iSerial                 3
>    bNumConfigurations      1
>    Configuration Descriptor:
>      bLength                 9
>      bDescriptorType         2
>      wTotalLength          116
>      bNumInterfaces          2
>      bConfigurationValue     1
>      iConfiguration          4
>      bmAttributes         0x80
>        (Bus Powered)
>      MaxPower              500mA
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        0
>        bAlternateSetting       0
>        bNumEndpoints           3
>        bInterfaceClass        11 Chip/SmartCard
>        bInterfaceSubClass      0
>        bInterfaceProtocol      0
>        iInterface              6
>        ChipCard Interface Descriptor:
>          bLength                54
>          bDescriptorType        33
>          bcdCCID              1.10  (Warning: Only accurate for version 1.0)
>          nMaxSlotIndex           0
>          bVoltageSupport         7  5.0V 3.0V 1.8V
>          dwProtocols             3  T=0 T=1
>          dwDefaultClock       3750
>          dwMaxiumumClock      7500
>          bNumClockSupported      0
>          dwDataRate          10080 bps
>          dwMaxDataRate      312500 bps
>          bNumDataRatesSupp.      0
>          dwMaxIFSD             254
>          dwSyncProtocols  00000000
>          dwMechanical     00000000
>          dwFeatures       00010030
>            Auto clock change
>            Auto baud rate change
>            TPDU level exchange
>          dwMaxCCIDMsgLen       271
>          bClassGetResponse      00
>          bClassEnvelope         00
>          wlcdLayout           none
>          bPINSupport             0
>          bMaxCCIDBusySlots       1
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x83  EP 3 IN
>          bmAttributes            3
>            Transfer Type            Interrupt
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0040  1x 64 bytes
>          bInterval               8
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x05  EP 5 OUT
>          bmAttributes            2
>            Transfer Type            Bulk
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0200  1x 512 bytes
>          bInterval               0
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x86  EP 6 IN
>          bmAttributes            2
>            Transfer Type            Bulk
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0200  1x 512 bytes
>          bInterval               0
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        1
>        bAlternateSetting       0
>        bNumEndpoints           2
>        bInterfaceClass         8 Mass Storage
>        bInterfaceSubClass      6 SCSI
>        bInterfaceProtocol     80 Bulk (Zip)
>        iInterface              5
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x01  EP 1 OUT
>          bmAttributes            2
>            Transfer Type            Bulk
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0200  1x 512 bytes
>          bInterval               0
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x82  EP 2 IN
>          bmAttributes            2
>            Transfer Type            Bulk
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0200  1x 512 bytes
>          bInterval               0
> can't get device qualifier: Operation not permitted
> can't get debug descriptor: Operation not permitted
> cannot read device status, Operation not permitted (1)
>
> On 14/01/11 16:30, Andre Zepezauer wrote:
> > lsusb -v -d 0bda:0161

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

Re: Newbie help

Ben Keeley
Thank you for your help.  Please see results...

I've edited Info.plist, it now contains

<--snip-->
<key>ifdVendorID</key>
<array>
<string>0x0BDA</string>
<--snip-->
<key>ifdProductID</key>
<array>
<string>0x0161</string>
<--snip-->

Have then rebooted and tried again with

ben@WOPR:~$ pcsc_scan
PC/SC device scanner
V 1.4.16 (c) 2001-2009, Ludovic Rousseau <[hidden email]>
Compiled with PC/SC lite version: 1.5.3
Scanning present readers...
Waiting for the first reader...^C

ben@WOPR:~$ opensc-tool --list-readers
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
Error: can't open /var/run/openct/status: No such file or directory
[opensc-tool] reader-pcsc.c:896:pcsc_detect_readers: SCardListReaders
failed: 0x8010002e
[opensc-tool] reader-pcsc.c:1015:pcsc_detect_readers: returning with: No
readers found
Readers known about:
Nr.    Driver     Name
0      openct     OpenCT reader (detached)
1      openct     OpenCT reader (detached)


On 14/01/11 17:19, Andre Zepezauer wrote:

> OK, lsusb dump looks good. Try editing of:
> /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
>
> Add the following two elements and leave everything else as is:
> <string>0x0BDA</string>
> <string>0x0161</string>
>
> The result should look like this:
>
> <key>ifdVendorID</key>
> <array>
> <string>0x0BDA</string>
> <!-- more strings -->
> </array>
>
> <key>ifdProductID</key>
> <array>
> <string>0x0161</string>
> <!-- more strings -->
> </array>
>
>
> On Fri, 2011-01-14 at 16:34 +0000, Ben Keeley wrote:
>> Thank you....
>>
>>
>>
>>
>> ben@WOPR:~$ lsusb -v -d 0bda:0161
>>
>> Bus 002 Device 002: ID 0bda:0161 Realtek Semiconductor Corp. Mass
>> Storage Device
>> Device Descriptor:
>>     bLength                18
>>     bDescriptorType         1
>>     bcdUSB               2.00
>>     bDeviceClass            0 (Defined at Interface level)
>>     bDeviceSubClass         0
>>     bDeviceProtocol         0
>>     bMaxPacketSize0        64
>>     idVendor           0x0bda Realtek Semiconductor Corp.
>>     idProduct          0x0161 Mass Storage Device
>>     bcdDevice           61.10
>>     iManufacturer           1
>>     iProduct                2
>>     iSerial                 3
>>     bNumConfigurations      1
>>     Configuration Descriptor:
>>       bLength                 9
>>       bDescriptorType         2
>>       wTotalLength          116
>>       bNumInterfaces          2
>>       bConfigurationValue     1
>>       iConfiguration          4
>>       bmAttributes         0x80
>>         (Bus Powered)
>>       MaxPower              500mA
>>       Interface Descriptor:
>>         bLength                 9
>>         bDescriptorType         4
>>         bInterfaceNumber        0
>>         bAlternateSetting       0
>>         bNumEndpoints           3
>>         bInterfaceClass        11 Chip/SmartCard
>>         bInterfaceSubClass      0
>>         bInterfaceProtocol      0
>>         iInterface              6
>>         ChipCard Interface Descriptor:
>>           bLength                54
>>           bDescriptorType        33
>>           bcdCCID              1.10  (Warning: Only accurate for version 1.0)
>>           nMaxSlotIndex           0
>>           bVoltageSupport         7  5.0V 3.0V 1.8V
>>           dwProtocols             3  T=0 T=1
>>           dwDefaultClock       3750
>>           dwMaxiumumClock      7500
>>           bNumClockSupported      0
>>           dwDataRate          10080 bps
>>           dwMaxDataRate      312500 bps
>>           bNumDataRatesSupp.      0
>>           dwMaxIFSD             254
>>           dwSyncProtocols  00000000
>>           dwMechanical     00000000
>>           dwFeatures       00010030
>>             Auto clock change
>>             Auto baud rate change
>>             TPDU level exchange
>>           dwMaxCCIDMsgLen       271
>>           bClassGetResponse      00
>>           bClassEnvelope         00
>>           wlcdLayout           none
>>           bPINSupport             0
>>           bMaxCCIDBusySlots       1
>>         Endpoint Descriptor:
>>           bLength                 7
>>           bDescriptorType         5
>>           bEndpointAddress     0x83  EP 3 IN
>>           bmAttributes            3
>>             Transfer Type            Interrupt
>>             Synch Type               None
>>             Usage Type               Data
>>           wMaxPacketSize     0x0040  1x 64 bytes
>>           bInterval               8
>>         Endpoint Descriptor:
>>           bLength                 7
>>           bDescriptorType         5
>>           bEndpointAddress     0x05  EP 5 OUT
>>           bmAttributes            2
>>             Transfer Type            Bulk
>>             Synch Type               None
>>             Usage Type               Data
>>           wMaxPacketSize     0x0200  1x 512 bytes
>>           bInterval               0
>>         Endpoint Descriptor:
>>           bLength                 7
>>           bDescriptorType         5
>>           bEndpointAddress     0x86  EP 6 IN
>>           bmAttributes            2
>>             Transfer Type            Bulk
>>             Synch Type               None
>>             Usage Type               Data
>>           wMaxPacketSize     0x0200  1x 512 bytes
>>           bInterval               0
>>       Interface Descriptor:
>>         bLength                 9
>>         bDescriptorType         4
>>         bInterfaceNumber        1
>>         bAlternateSetting       0
>>         bNumEndpoints           2
>>         bInterfaceClass         8 Mass Storage
>>         bInterfaceSubClass      6 SCSI
>>         bInterfaceProtocol     80 Bulk (Zip)
>>         iInterface              5
>>         Endpoint Descriptor:
>>           bLength                 7
>>           bDescriptorType         5
>>           bEndpointAddress     0x01  EP 1 OUT
>>           bmAttributes            2
>>             Transfer Type            Bulk
>>             Synch Type               None
>>             Usage Type               Data
>>           wMaxPacketSize     0x0200  1x 512 bytes
>>           bInterval               0
>>         Endpoint Descriptor:
>>           bLength                 7
>>           bDescriptorType         5
>>           bEndpointAddress     0x82  EP 2 IN
>>           bmAttributes            2
>>             Transfer Type            Bulk
>>             Synch Type               None
>>             Usage Type               Data
>>           wMaxPacketSize     0x0200  1x 512 bytes
>>           bInterval               0
>> can't get device qualifier: Operation not permitted
>> can't get debug descriptor: Operation not permitted
>> cannot read device status, Operation not permitted (1)
>>
>> On 14/01/11 16:30, Andre Zepezauer wrote:
>>> lsusb -v -d 0bda:0161
>
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help

Mr Dash Four

> Have then rebooted and tried again with
>
> ben@WOPR:~$ pcsc_scan
> PC/SC device scanner
> V 1.4.16 (c) 2001-2009, Ludovic Rousseau <[hidden email]>
> Compiled with PC/SC lite version: 1.5.3
> Scanning present readers...
> Waiting for the first reader...^C
>
> ben@WOPR:~$ opensc-tool --list-readers
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
> Error: can't open /var/run/openct/status: No such file or directory
>  
Are you running SELinux in fully active mode (i.e. "cat
/selinux/enforce" returning "1")? That's the sort of error I used to get
until I finally realised that SELinux was preventing access to that
directory and stopping OpenCT from operating normally (i.e. opening a
stream socket in that directory).

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

Re: Newbie help

Ben Keeley
Hi,

No just std ubuntu 10.10. No selinux...

Thanks


On 14/01/11 19:02, Mr Dash Four wrote:

>
>> Have then rebooted and tried again with
>>
>> ben@WOPR:~$ pcsc_scan
>> PC/SC device scanner
>> V 1.4.16 (c) 2001-2009, Ludovic Rousseau <[hidden email]>
>> Compiled with PC/SC lite version: 1.5.3
>> Scanning present readers...
>> Waiting for the first reader...^C
>>
>> ben@WOPR:~$ opensc-tool --list-readers
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
>> Error: can't open /var/run/openct/status: No such file or directory
> Are you running SELinux in fully active mode (i.e. "cat
> /selinux/enforce" returning "1")? That's the sort of error I used to
> get until I finally realised that SELinux was preventing access to
> that directory and stopping OpenCT from operating normally (i.e.
> opening a stream socket in that directory).
>
>
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help

Mr Dash Four

> No just std ubuntu 10.10. No selinux...
OK, I've just checked my own /var/run/openct directory and have the
following permissions:

drwxr-xr-x.  2 root  root  4096 2  Jan 22:15 /var/run/openct
-rw-r--r--. 1 root root 1728 2  Jan 22:15 /var/run/openct/status

In other words, group and other/all access permissions should be set
properly. The other thing I may suggest to you is to manually create
this file (var/run/openct/status) with the same permissions and see if
openct works (this file will be modified by openct anyway, so I think
there is no harm if you manually create it).

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

Re: Newbie help

Ben Keeley
Hi,

Thanks for the help...  the permissions weren't right.  Have set them as
following

drwxr-xr-x 2 root        scard         60 2011-01-15 16:48 openct

(my account ben is now a member of scard)

-rwxr-xr-x 1 root root 1728 2011-01-15 16:48 status

started a terminal as root to try and avoid this stuff.

Still having problems...  Am i better off stripping off all the packages
and reinstalling them?  If so what packages do I need please?

Again thanks

Ben

On 15/01/11 11:23, Mr Dash Four wrote:

>
>> No just std ubuntu 10.10. No selinux...
> OK, I've just checked my own /var/run/openct directory and have the
> following permissions:
>
> drwxr-xr-x.  2 root  root  4096 2  Jan 22:15 /var/run/openct
> -rw-r--r--. 1 root root 1728 2  Jan 22:15 /var/run/openct/status
>
> In other words, group and other/all access permissions should be set
> properly. The other thing I may suggest to you is to manually create
> this file (var/run/openct/status) with the same permissions and see if
> openct works (this file will be modified by openct anyway, so I think
> there is no harm if you manually create it).
>
>
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help

Mr Dash Four

> -rwxr-xr-x 1 root root 1728 2011-01-15 16:48 status
If you have problems relating to that file try to set the same owner
permissions as you did with the openct directory (i.e. owner - root,
group - scard). Leave the file permissions as they are above (-rwxr-xr-x).

> Still having problems...
Could you be more specific - what sort of problems do you have?


> Am i better off stripping off all the packages and reinstalling them?  
> If so what packages do I need please?
That would depend on what type of card you have. In my case (I use
Aladdin 64k PRO) I only need OpenCT installed as the card is recognised.
For GUI (gdm/Gnome etc) you would probably need pcsc(-lite) - in
addition to openct - so that gdm/gnome can communicate with d-bus and
the GUI login applet. It all depends what you are planning to use this
card for really.
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help

Jean-Michel Pouré - GOOZE
In reply to this post by Ben Keeley
Le vendredi 14 janvier 2011 à 17:39 +0000, Ben Keeley a écrit :
> Have then rebooted and tried again with
> ben@WOPR:~$ pcsc_scan

If you are using a pcsc+ccid smartcard reader,
you don't need OpenCT interface.
This may conflict with ccid access.

Also, if you are using a Feitian PKI card,
please compile and install OpenSC 0.12.0.

A guide:
http://www.gooze.eu/howto/smartcard-quickstarter-guide

Kind regards,
--
                  Jean-Michel Pouré - Gooze - http://www.gooze.eu

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

Re: Newbie help

Ben Keeley
In reply to this post by Mr Dash Four
Hi,

Just seen this
https://bugzilla.redhat.com/show_bug.cgi?id=649655

Which is what I think the problem I've got.  As this shows

ben@WOPR:~$ lsusb -td 0bda:0161
/:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
     |__ Port 2: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/8p, 480M
     |__ Port 4: Dev 2, If 0, Class=scard, Driver=mceusb, 480M
     |__ Port 4: Dev 2, If 1, Class=stor., Driver=usb-storage, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M


Surely scard should not show as mceusb?

Thanks

On 15/01/11 17:47, Mr Dash Four wrote:

>
>> -rwxr-xr-x 1 root root 1728 2011-01-15 16:48 status
> If you have problems relating to that file try to set the same owner
> permissions as you did with the openct directory (i.e. owner - root,
> group - scard). Leave the file permissions as they are above
> (-rwxr-xr-x).
>
>> Still having problems...
> Could you be more specific - what sort of problems do you have?
>
>
>> Am i better off stripping off all the packages and reinstalling
>> them?  If so what packages do I need please?
> That would depend on what type of card you have. In my case (I use
> Aladdin 64k PRO) I only need OpenCT installed as the card is
> recognised. For GUI (gdm/Gnome etc) you would probably need
> pcsc(-lite) - in addition to openct - so that gdm/gnome can
> communicate with d-bus and the GUI login applet. It all depends what
> you are planning to use this card for really.
>
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help

Jean-Michel Pouré - GOOZE
Le dimanche 16 janvier 2011 à 10:55 +0000, Ben Keeley a écrit :
> Which is what I think the problem I've got.  As this shows

Please compile OpenSC without OpenCT and use only libccid, with the
correct ID of your smartcardreader added the definition file.

Then you can start guessing where is the problem.

Kind regards,
--
                  Jean-Michel Pouré - Gooze - http://www.gooze.eu

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

Re: Newbie help

Ludovic Rousseau
In reply to this post by Ben Keeley
2011/1/16 Ben Keeley <[hidden email]>:

> Hi,
>
> Just seen this
> https://bugzilla.redhat.com/show_bug.cgi?id=649655
>
> Which is what I think the problem I've got.  As this shows
>
> ben@WOPR:~$ lsusb -td 0bda:0161
> /:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
>     |__ Port 2: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M
> /:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
> /:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
> /:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
> /:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
> /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
> /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
> /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/8p, 480M
>     |__ Port 4: Dev 2, If 0, Class=scard, Driver=mceusb, 480M
>     |__ Port 4: Dev 2, If 1, Class=stor., Driver=usb-storage, 480M
> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M
>
>
> Surely scard should not show as mceusb?

Your device is already in my CCID driver list [1].
I think you found the real problem with the RedHat bug report.

Bye

[1] http://pcsclite.alioth.debian.org/ccid/shouldwork.html#0x0BDA0x0161

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

Re: Newbie help

Ben Keeley
Hi,

Thank you for confirmation.

And yes after blacklisting mceusb, its now using USBFS and I do seem to
be able to progress using these instructions:
http://ubuntuforums.org/showthread.php?t=1557180

If I can trouble the group again.

1) Are these the instructions the best to use for a newbie to smartcards?

2) Should I be concerned by these messages?
ben@WOPR:~$ opensc-tool --reader 0 --name -v
[opensc-tool] reader-pcsc.c:896:pcsc_detect_readers: SCardListReaders
failed: 0x8010002e
[opensc-tool] reader-pcsc.c:1015:pcsc_detect_readers: returning with: No
readers found
Connecting to card in reader CCID Compatible...
[opensc-tool] reader-openct.c:324:openct_reader_transmit: unable to transmit
[opensc-tool] apdu.c:394:do_single_transmit: unable to transmit APDU
Using card driver entersafe.
Card name: entersafe

Thank you

Ben

On 16/01/11 11:47, Ludovic Rousseau wrote:

> 2011/1/16 Ben Keeley<[hidden email]>:
>> Hi,
>>
>> Just seen this
>> https://bugzilla.redhat.com/show_bug.cgi?id=649655
>>
>> Which is what I think the problem I've got.  As this shows
>>
>> ben@WOPR:~$ lsusb -td 0bda:0161
>> /:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
>>      |__ Port 2: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M
>> /:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
>> /:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
>> /:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
>> /:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
>> /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
>> /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
>> /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/8p, 480M
>>      |__ Port 4: Dev 2, If 0, Class=scard, Driver=mceusb, 480M
>>      |__ Port 4: Dev 2, If 1, Class=stor., Driver=usb-storage, 480M
>> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M
>>
>>
>> Surely scard should not show as mceusb?
> Your device is already in my CCID driver list [1].
> I think you found the real problem with the RedHat bug report.
>
> Bye
>
> [1] http://pcsclite.alioth.debian.org/ccid/shouldwork.html#0x0BDA0x0161
>
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help

Jean-Michel Pouré - GOOZE
Le dimanche 16 janvier 2011 à 11:58 +0000, Ben Keeley a écrit :
> [opensc-tool] reader-openct.c:324:openct_reader_transmit: unable to
> transmit

You should disable OpenCT. Please follow the guidelines and disable
OpenCT when using a CCID devide.
--
                  Jean-Michel Pouré - Gooze - http://www.gooze.eu

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

Re: Newbie help

Ben Keeley
Hi,

I didn't have an example openct-disable.fdi, so had to create it from
here
http://www.opensc-project.org/openct/browser/trunk/etc/openct-disable.fdi?rev=1146

Have applied it, rebooted, same thing I'm afraid.

ben@WOPR:~$ cat /etc/hal/fdi/policy/openct-disable.fdi
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="smart_card_reader.openct_capable" bool="true">
<remove key="info.addons" type="strlist">hald-addon-openct</remove>
</match>
</device>
</deviceinfo>
ben@WOPR:~$ opensc-tool --reader 0 --name -v
[opensc-tool] reader-pcsc.c:896:pcsc_detect_readers: SCardListReaders
failed: 0x8010002e
[opensc-tool] reader-pcsc.c:1015:pcsc_detect_readers: returning with: No
readers found
Connecting to card in reader CCID Compatible...
[opensc-tool] reader-openct.c:324:openct_reader_transmit: unable to transmit
[opensc-tool] apdu.c:394:do_single_transmit: unable to transmit APDU
Using card driver entersafe.
Card name: entersafe


Thanks


On 16/01/11 12:37, Jean-Michel Pouré - GOOZE wrote:
> Le dimanche 16 janvier 2011 à 11:58 +0000, Ben Keeley a écrit :
>> [opensc-tool] reader-openct.c:324:openct_reader_transmit: unable to
>> transmit
> You should disable OpenCT. Please follow the guidelines and disable
> OpenCT when using a CCID devide.
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
12