Twuk / eid-viewer

Automatically exported from code.google.com/p/eid-viewer
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Urgent - ACR38 smart card reader - not working with eid-viewer #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Why the ACR38 smart card reader is not working with eid-viewer? When i use 
lsusb and pcsc_scan it detects the card in my Linux box.

See screen shot of eid-viewer not detecting it at all: 
http://i.imgur.com/IFcvKy0.png  

$ uname -a
Linux sun-M14xR2 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 
x86_64 x86_64 x86_64 GNU/Linux

$ lsusb
Bus 003 Device 006: ID 072f:90cc Advanced Card Systems, Ltd ACR38 SmartCard 
Reader

root@sun-M14xR2:~/Downloads# pcsc_scan 
PC/SC device scanner
V 1.4.20 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.8.3
Using reader plug'n play mechanism
Scanning present readers...
0: ACS AET65 00 00

Thu Aug  8 23:17:28 2013
Reader 0: ACS AET65 00 00
  Card state: Card inserted, 
  ATR: 3B 04 92 23 10 91

ATR: 3B 04 92 23 10 91
+ TS = 3B --> Direct Convention
+ T0 = 04, Y(1): 0000, K: 4 (historical bytes)
+ Historical bytes: 92 23 10 91
  Category indicator byte: 92 (proprietary format)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B 04 92 23 10 91
    Siemens SLE 4432/42 card

Thu Aug  8 23:17:35 2013
Reader 0: ACS AET65 00 00
  Card state: Card removed, 

Thu Aug  8 23:17:38 2013
Reader 0: ACS AET65 00 00
  Card state: Card inserted, 
  ATR: 3B 04 92 23 10 91

ATR: 3B 04 92 23 10 91
+ TS = 3B --> Direct Convention
+ T0 = 04, Y(1): 0000, K: 4 (historical bytes)
+ Historical bytes: 92 23 10 91
  Category indicator byte: 92 (proprietary format)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B 04 92 23 10 91
    Siemens SLE 4432/42 card

Original issue reported on code.google.com by sha...@companysocia.com on 8 Aug 2013 at 9:20

Attachments:

GoogleCodeExporter commented 9 years ago
Take further actions but no luck yet please help?

Step 1: Install there driver: 
http://www.acs.com.hk/index.php?pid=drivers&id=acr38

Step 2: see the logs of eid-viewer

eid-viewer: this are the logs i get, but still not showing the card 
informations.

[BelgianEidViewer] java.runtime.name=Java(TM) SE Runtime Environment
[BelgianEidViewer] 
sun.boot.library.path=/usr/lib/jvm/java-7-oracle/jre/lib/amd64
[BelgianEidViewer] java.vm.version=23.25-b01
[BelgianEidViewer] java.vm.vendor=Oracle Corporation
[BelgianEidViewer] java.vendor.url=http://java.oracle.com/
[BelgianEidViewer] path.separator=:
[BelgianEidViewer] java.vm.name=Java HotSpot(TM) 64-Bit Server VM
[BelgianEidViewer] file.encoding.pkg=sun.io
[BelgianEidViewer] user.country=US
[BelgianEidViewer] sun.java.launcher=SUN_STANDARD
[BelgianEidViewer] sun.os.patch.level=unknown
[BelgianEidViewer] java.vm.specification.name=Java Virtual Machine Specification
[BelgianEidViewer] user.dir=/home/sun/Downloads/libctacs_linux_bin-1.0.0
[BelgianEidViewer] java.runtime.version=1.7.0_25-b15
[BelgianEidViewer] java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
[BelgianEidViewer] 
java.endorsed.dirs=/usr/lib/jvm/java-7-oracle/jre/lib/endorsed
[BelgianEidViewer] os.arch=amd64
[BelgianEidViewer] java.io.tmpdir=/tmp
[BelgianEidViewer] line.separator=

[BelgianEidViewer] java.vm.specification.vendor=Oracle Corporation
[BelgianEidViewer] os.name=Linux
[BelgianEidViewer] sun.jnu.encoding=UTF-8
[BelgianEidViewer] 
java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
[BelgianEidViewer] sun.awt.enableExtraMouseButtons=true
[BelgianEidViewer] java.specification.name=Java Platform API Specification
[BelgianEidViewer] java.class.version=51.0
[BelgianEidViewer] sun.management.compiler=HotSpot 64-Bit Tiered Compilers
[BelgianEidViewer] os.version=3.5.0-17-generic
[BelgianEidViewer] user.home=/root
[BelgianEidViewer] user.timezone=Europe/Brussels
[BelgianEidViewer] java.awt.printerjob=sun.print.PSPrinterJob
[BelgianEidViewer] file.encoding=UTF-8
[BelgianEidViewer] java.specification.version=1.7
[BelgianEidViewer] user.name=root
[BelgianEidViewer] java.class.path=/usr/share/eid-viewer/eid-viewer.jar
[BelgianEidViewer] java.vm.specification.version=1.7
[BelgianEidViewer] sun.arch.data.model=64
[BelgianEidViewer] java.home=/usr/lib/jvm/java-7-oracle/jre
[BelgianEidViewer] sun.java.command=/usr/share/eid-viewer/eid-viewer.jar
[BelgianEidViewer] java.specification.vendor=Oracle Corporation
[BelgianEidViewer] user.language=en
[BelgianEidViewer] awt.toolkit=sun.awt.X11.XToolkit
[BelgianEidViewer] java.vm.info=mixed mode
[BelgianEidViewer] java.version=1.7.0_25
[BelgianEidViewer] 
java.ext.dirs=/usr/lib/jvm/java-7-oracle/jre/lib/ext:/usr/java/packages/lib/ext
[BelgianEidViewer] 
sun.boot.class.path=/usr/lib/jvm/java-7-oracle/jre/lib/resources.jar:/usr/lib/jv
m/java-7-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-7-oracle/jre/lib/sunrsasign.jar
:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-7-oracle/jre/lib/
jce.jar:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-7-orac
le/jre/lib/jfr.jar:/usr/lib/jvm/java-7-oracle/jre/classes
[BelgianEidViewer] java.vendor=Oracle Corporation
[BelgianEidViewer] file.separator=/
[BelgianEidViewer] java.vendor.url.bug=http://bugreport.sun.com/bugreport/
[BelgianEidViewer] sun.cpu.endian=little
[BelgianEidViewer] sun.io.unicode.encoding=UnicodeLittle
[BelgianEidViewer] sun.font.fontmanager=sun.awt.X11FontManager
[BelgianEidViewer] sun.cpu.isalist=
[BelgianEidViewer] starting..
[ProxyUtils] Determining System Proxy 
For[http://trust-ws.services.belgium.be/eid-trust-service-ws/xkms2]
[ProxyUtils] Saved Original useSystemProxies Setting
[ProxyUtils] Temporarily Enabling useSystemProxies
[ProxyUtils] using default ProxySelector on 
[http://trust-ws.services.belgium.be/eid-trust-service-ws/xkms2]
[ProxyUtils] Default ProxySelector returned [1] Proxy Objects
[ProxyUtils] Finding HTTP Proxies
[ProxyUtils] Checking Out [DIRECT]
[BelgianEidViewer] [libj2pcsc.so workaround] Workaround for developer-only 
libj2pcsc.so on GNU/Linux Platforms enabled..
[BelgianEidViewer] [libj2pcsc.so workaround] failed to find pcsclite.
[BelgianEidViewer] [libj2pcsc.so workaround] 
java.library.path=[/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
[PCSCEidController] state state_idle activity null action null
[PCSCEidController] state state_idle activity activity_idle action null
[XKMS2Client] ws location: 
https://trust-ws.services.belgium.be/eid-trust-service-ws/xkms2
[TrustServiceController] Starting
[TrustServiceController] Removing Proxy
[TrustServiceController] Sleeping until validation requested
[XKMS2ProxySelector] removing proxy for: trust-ws.services.belgium.be
[PCSCEidController] setting TrustServiceController
[TrustServiceController] Starting
[TrustServiceController] Sleeping until validation requested
[CardPanel] Setting eidController
[PCSCEidController] starting..
[PCSCEidController] starting reader sequence
[PCSCEidController] waiting for card readers..
[PCSCEidController] state state_noreaders activity activity_idle action none
[CertificatesPanel] Updating..
[CertificatesPanel] Clearing Certificate Data..
[CardPanel] Updating..
[CardPanel] Clear Card Data And Not Loading
[IdentityPanel] Update..
[IdentityPanel] Clearing all data because source is not available

Original comment by sha...@companysocia.com on 8 Aug 2013 at 9:28

GoogleCodeExporter commented 9 years ago
Here is an installation procedure I wrote today. I tested it and it works in 
Ubuntu 13.10 64-bit.
eid-viewer also works after executing this procedure.

How to get the eid electronic card reader ACR38U working in Ubuntu 13.10 64-bit
===============================================================================

Prerequisites: Ubuntu 13.10 64-bit, newest version of Mozilla Firefox, pcscd, 
default-jre, opensc, libacr38u,  libacr38ucontrol0, libacsccid1, libccid

In a Terminal session, run the following commands:

sudo aptitude update
sudo aptitude install firefox pcscd  default-jre  opensc libacr38u 
libacr38ucontrol0 libacsccid1  libccid
sudo aptitude remove --purge beid*
wget 
http://eid.belgium.be/fr/binaries/eid-mw_4%2E0%2E4r1253_amd64_tcm226-178472.deb
sudo dpkg -i eid-mw_4.0.4r1253_amd64_tcm226-178472.deb
wget 
http://eid.belgium.be/fr/binaries/eid-viewer_4%2E0%2E4r146_amd64_tcm226-178482.d
eb
sudo dpkg -i eid-viewer_4.0.4r146_amd64_tcm226-178482.deb

Manually set the following values in Mozilla Firefox in about:config

security.ssl.allow_unrestricted_renego_everywhere__temporarily_available_pref;tr
ue
security.ssl.enable_false_start;true
security.ssl.renego_unrestricted_hosts;*.be

Manually replace the security.ssl.renego_unrestricted_hosts name
 certif.belgium.be or *.be in about:config,  if you want to authenticate on a DIFFERENT site than www.cm.be or test.eid.belgium.be !!!

Download Belgium Root certificates here:

http://repository.eid.belgium.be/certificates.php?cert=Root&lang=en

Import Belgium Root certificates into Firefox.

The Belgium Root certificates are required if you want to use the applications 
of the FSP Finance (Belcotax, Intervat, Finprof, etc.).

Before you begin, make sure your identity card is in the card reader. Then:

    Viewing certificates
        For Linux: Go to Edit > Preferences > Advanced > Encryption and click ‘View certificates’.
    Check-marking certificates

    Follow the steps below for the ‘Belgium Root CA’ and ‘Belgium Root CA2’ certificates. Can you only find one certificate? Then you obviously only have to perform these steps once.
        Find the ‘Belgium Root CA’ or ‘Belgium Root CA2’ certificate and click the line below the arrow.
        Click ‘Edit…’.
        Check ALL three boxes.
        Click ‘OK’.

Ensure that there are absolutely NO add-ons or plugins installed in Mozilla 
Firefox.
Installing the Belgium eid Firefox add-on will NOT work in Ubuntu 13.10 64-bit 
and only make matters worse!

Disconnect the eid card reader from the PC.
Reconnect the eid card reader from the PC.

Insert eid card into card reader.

Reboot the PC.

Test eid card reader here:

http://test.eid.belgium.be/

Source: http://wiki.yobi.be/wiki/Belgian_eID

Original comment by markrijc...@gmail.com on 29 Dec 2013 at 12:57