2013/10/13

Ubuntu 64 bit: Accessing the Smartcard within Java Applets

I had some trouble to get the smartcard api working within Java Applets in Ubuntu 13.04 using the Firefox browser.

After some experimentation, I managed to fix this issue. The fix is in 3 parts:
  1. make sure all pcscd libraries are installed: 
    sudo apt-get install pcscd pcsc-tools libpcsclite1 libccid
    
  2. install the Oracle JDK (I couldn't get the smartcard API under the default OpenJDK to work):
  3. the Oracle JDK uses an incorrect path for accessing the pcsclite library. Fix it with a symlink:
    sudo mkdir /usr/lib64
    sudo ln -s /lib/x86_64-linux-gnu/libpcsclite.so.1 /usr/lib64/libpcsclite.so
    
If you now restart Firefox, the smartcard API for Java Applets should work.

source: https://lists.launchpad.net/openjdk/msg07864.html

No comments: