artosan / nitroluks

Unlock LUKS disk by Nitrokey on boot.
GNU General Public License v2.0
33 stars 11 forks source link

Nitroluks

Unlock LUKS disk by Nitrokey on boot using the password vault which is built in Nitrokey Pro and Nitrokey Storage.

Support for Nitrokey Start is coming shortly. It works by adding support for keyfiles, i.e., the LUKS password would be stored in an encrypted file within the initramfs which is decrypted during the boot by Nitrokey.

This method will of course work with Nitrokey Pro and Nitrokey Storage also.

Warning

This is an early version, and I have only tested it personally by running it on my computer.

YOU CAN MAKE YOUR DEBIAN UNBOOTABLE IF YOU MESS UP THE crypttab or initramfs SO BE CAREFUL. You have been warned.

Please take backups of any important files and make sure that you have backup initramfs which you can use as a fallback if the installation messes your boot up for some reason.

This package could potentially work with Ubuntu also, but I have not tested it.

Moreover, the directory structure is not compliant with Debian project guidelines. I will be improving the package structure, code quality and make sure that this also works with Ubuntu shortly so stay tuned.

Installation

Before the installation, you must do some preparation steps.

Preparation

Note that IT IS IMPORTANT THAT THE SLOT NAME IN THE NITROKEY IS LUKS OTHERWISE YOU CAN NOT UNLOCK YOUR DISK BY NITROKEY!

Install

Additional information