Tuesday, June 4, 2013

BankID with card reader on Ubuntu 13.04 64-bit

I had a fair bit of problems getting this to work, so here is how I did it.

There is a lot of good information on the Ubuntu wiki for Nexus Personal, but since it tries to encompass everything, I find it a little difficult to follow.

The card reader that I have is a Digipass 920, so if you are using something else, you may need to change out the driver for the one appropriate for you device.

Do keep in mind that the BankID application will not be automatically updated. If you need to update to a new version you'll have to download and install it again as described below.
  • Get the BankID application from https://install.bankid.com/Download?defaultFileId=Linux (the website blocks 64-bit Linux from the "regular" download procedure, so if you're downloading from that you need to use this direct link)
  • Unzip the application
  • Open a terminal and go to the directory that you unzipped the application to, and type in the following command (Please note that the version number will change):
    • sudo ./install.4.19.0.11351.sh i
  • Open Synaptic Package Manager and install the needed packages (Synaptic is not installed by default in Ubuntu these days, so if you don't already have it, install it from Ubuntu Software Center):
    • ia32-libs - Needed to run 32-bit programs
    • pkcs11-data - Needed for Firefox to be able to read the certificate file
    • pcscd (NOTE: Make sure that it is the 32-bit version! Easiest is to select "Architecture" on the bottom left, and then "arch:i386" on the top left, then type in "pcscd" in the Quick filter) - Driver for the Digipass
      • Edit: I notice that on Linux Mint, there is no option to filter by architecture in Synaptic, the name of the package you need is pcscd:i386. Either reboot and filter by name in Synaptic or use the terminal command: sudo apt-get install pcscd:i386
    • nspluginwrapper - Needed for Firefox to be able to use the 32-bit plugin
  • Go back to the terminal and give the following command:
    • sudo nspluginwrapper -i /usr/local/lib/personal/libplugins.so
  • Check that the plugin has been registerd by nspluginwrapper
    • nspluginwrapper -l
    • The output should be something like this:
       /home/user/.mozilla/plugins/npwrapper.libplugins.so
         Original plugin: /usr/lib/xulrunner-addons/plugins/libplugins.so
         Wrapper version string: 1.1.2
  • Start/restart Firefox, go to Tools -> Addons and check that you can see Nexus Personal under Plugins
  • Give it a try, it should now work
Edit: I've tried this on Ubuntu, Linux Mint and Pear OS so far, and it's worked on all of them.

5 comments:

  1. I consistantly get "segmentation fault (core dumped)" when trying nspluginwrapper -l after having followed the instructions..... Any advice?

    ReplyDelete
  2. Hi, not something that I saw myself, but a little googling tells me that there is a bug with certain plugins, in particular google-talkplugin. Try using it anyway, it might just work despite the error, or try uninstalling google-talkplugin.

    ReplyDelete
  3. Hi,
    When trying to run the following line:
    sudo nspluginwrapper -i /usr/local/lib/personal/libplugins.so
    I get this message:
    nspluginwrapper: no appropriate viewer found for /usr/local/lib/personal/libplugins.so

    ReplyDelete
  4. Thanks! "nspluginwrapper -l" fails for me as well, but the BankID works perfectly!

    ReplyDelete