FeitianSmartcardReader / eid-applet

Automatically exported from code.google.com/p/eid-applet
Other
1 stars 0 forks source link

Ubuntu 12 does not find pcsc library anymore #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ubuntu 12 installs the pcsclite library in /lib/i386-linux-gnu/, but the result 
is that the applet cannot find the library anymore.

(Ubuntu 11 uses /lib and Debian /usr/lib, these directories are both in 
java.library.path)

Work-arounds:

- add /lib/i386-linux-gnu to java.library.path
- or add a link from /lib/libpcsclite.so.1 to 
/lib/i386-linux-gnu/libpcsclite.so.1
- or copy /lib/i386-linux-gnu to /lib

Error message:

eID Applet - Copyright (C) 2008-2011 FedICT.
Released under GNU LGPL version 3.0 license.
More info: http://code.google.com/p/eid-applet/
checking applet privileges...
security manager permission check for java 1.6...
checking web application trust...
running privileged code...
[libj2pcsc.so workaround] Workaround for developer-only libj2pcsc.so on 
GNU/Linux Platforms enabled..
[libj2pcsc.so workaround] failed to find pcsclite.
[libj2pcsc.so workaround] 
java.library.path=[/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386/client:/usr/lib
/jvm/java-6-sun-1.6.0.22/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/../li
b/i386:/usr/java/packages/lib/i386:/lib:/usr/lib]
eID browser applet version: 1.0.5.Beta5
Java version: 1.6.0_22
Java vendor: Sun Microsystems Inc.
OS: Linux
OS version: 3.2.0-24-generic
OS arch: i386
Web application URL: 
https://www.e-contract.be/eid-applet-test/identify-frame.html
Current time: Wed Jun 13 09:35:42 CEST 2012
ERROR: no session cookie detected!
sending message: HelloMessage
current protocol state: null
protocol state transition: INIT
SSL handshake finish cipher suite: SSL_RSA_WITH_RC4_128_MD5 response message: 
CheckClientMessage current protocol state: INIT protocol state transition: 
ENV_CHECK Need to check the client secure environment...
sending message: ClientEnvironmentMessage current protocol state: ENV_CHECK SSL 
handshake finish cipher suite: SSL_RSA_WITH_RC4_128_MD5 response message: 
IdentificationRequestMessage current protocol state: ENV_CHECK protocol state 
transition: IDENTIFY include address: true include photo: true include 
integrity data: true include certificates: true remove card: true identity data 
usage: Identity Data Usage message from the server.
Detecting eID card...
Please connect a card reader...

Original issue reported on code.google.com by bart.han...@fedict.be on 13 Jun 2012 at 2:30

GoogleCodeExporter commented 9 years ago

Original comment by frank.co...@gmail.com on 17 Oct 2012 at 12:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Step 1: 

Ubuntu 12.04 - 64-bit
$ uname -a
Linux e300diest 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Step 2: 

apt-get install default-jre default-jre-headless pcscd openct pcsc-tools 
openjdk-7.. bla bla

download the eid-viewer.jar and tar 

Step 3: failing if you launch eid-viewer now

Step 4: 

$ apt-cache search libpcscl*
libpcsclite-dev - Middleware to access a smart card using PC/SC (development 
files)
libpcsclite1 - Middleware to access a smart card using PC/SC (library)
libpcsc-perl - Perl interface to the PC/SC smart card library
libpcscada0.7.1 - Ada bindings to PC/SC middleware
libpcscada2-dev - Ada bindings to PC/SC middleware (development)

Step 5: install those above packages then find them

$ locate libpcsclite.so.1/lib/x86_64-linux-gnu/libpcsclite.so.1
/lib/x86_64-linux-gnu/libpcsclite.so.1.0.

Step 6: eat the apple now

$ export DISPLAY=:0.0 && java -Djava.library.path=/lib/x86_64-linux-gnu -cp 
/usr/share/eid-viewer/eid-viewer.jar be.fedict.eidviewer.gui.BelgianEidViewer

Working

Original comment by sha...@companysocia.com on 6 Sep 2013 at 12:05