This page will guide you though the process of setting up an ISO 7816-1,2,3,4 compliant cryptographic Smart Card to act as an LUKS unlock key and/or a user sign on token for KDE3.5.

Table of Contents

For Jaunty and above

I have replaced the old instructions below with an automated setup utility, currently published on my PPA here: https://launchpad.net/~kde3-maintainers/+archive/ppa/+sourcepub/685732/+listing-archive-extra

If you are using the KDE3.5 version of Kubuntu, you already have that PPA ready to use on your system--just install the package "smartcardauth".

Once that package is installed, go to "Start"-->"System"-->"SmartCard Authentication Setup". If you have an encrypted installation of Kubuntu, select "First Time Setup Wizard", click OK, and follow the instructions.

If you do not have an encrypted installation, and simply wish to use the automatic sign on functionality, select "Load Username" from the main menu. When you have completed that process, also select and complete "Load Password" and "Enable automatic logon for KDE3.5".

It is a good idea to change your SmartCard's transport key from the default manufacturer's key. Please select "Update SmartCard Transport Key" from the menu and follow the instructions.

If you encounter any problems, please file a bug report at http://bugs.pearsoncomputing.net This is still a somewhat experimental package, and bugs may exist in it.

I would like to extend functionality to also include Gnome. This should be a relatively simple task, and if anyone would like to help I would appreciate it!

Details of Bootup Sequence

Known working hardware

Old Information

This will be a HOWTO for setting up SmartCard authentication for LUKS encrypted disks. I am using several scripts that others have written, as well as some of my own. For the most part, this HOWTO will focus on getting the SmartCard and associated LUKS unlock programs working, but a minimal LUKSHowTo has been added for continuity.

This HOWTO currently targets Schlumberger MultiFlex Smart Cards and Lenovo ThinkPad R61/T61 card readers, although other configurations may also work.

WARNING: I am not responsible if this HOWTO makes your system unbootable or worse. Consider this document as alpha quality--only users with experience in smart cards, initramfs, and LUKS should attempt this procedure.

Software Requirements

Install the required software: sudo apt-get install pcscd initramfs-tools libpcsc-perl libpcsclite1 libccid pcsc-tools opensc

LUKS Setup

Much of this information has been taken from the excellent free tutorial at http://wejn.org/how-to-make-passwordless-cryptsetup.html, and then condensed and altered to integrate it into this HOWTO

The updated script will still allow you to enter your LUKS password and start the system if the SmartCard breaks or is not available.

SmartCard Setup

I have written a script to provide an easy SmartCard programming interface. You can download it here: loadsmartcard.sh

Simply make the script executable with sudo chmod a+x loadsmartcard.sh after download, then execute sudo ./loadsmartcard.sh from your favorite terminal program and follow the on-screen instructions.

You will need to:

SmartCard programming is now complete! If you ever need to change the LUKS keyfile, simply repeat the last step with your new keyfile.

Initramfs Setup

KDE 3.x Automatic Login and Lock/Unlock

Install the extra required software: sudo apt-get install inn2

SmartCardLUKSDiskEncryption (last edited 2009-07-29 21:24:09 by pearsoncomputing)