404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.17.132.171: ~ $
using GnuPG keys for LUKS dm-crypt devices in Debian
----------------------------------------------------

The Debian cryptsetup package provides the keyscript decrypt_gnupg for setups
with a GnuPG encrypted LUKS keyfile.

The following example assumes that you store the encrypted keyfile in
/etc/keys/cryptkey.gpg. LUKS device is /dev/<luks_device>.

First, you'll have to create the encrypted keyfile:

# dd if=/dev/random bs=1 count=256 | gpg --no-options --no-random-seed-file \
	--no-default-keyring --keyring /dev/null --secret-keyring /dev/null \
	--trustdb-name /dev/null --symmetric --output /etc/keys/cryptkey.gpg

Next the LUKS device needs to be formated with the key. For that, the
decrypt_gnupg keyscript can be used:

# /lib/cryptsetup/scripts/decrypt_gnupg /etc/keys/crytpkey.gpg | \
	cryptsetup --key-file=- luksFormat /dev/<luks_device>

In order to unlock the encrypted LUKS device automatically during boot process,
add the following to /etc/crypttab:

cdev1	/dev/<luks_device>	/etc/keys/cryptkey.gpg	luks,keyscript=decrypt_gnupg


decrypting the keyfile at initramfs stage
-----------------------------------------

If the device is to be unlocked at initramfs stage (such as for the root FS or
the resume device), the provided initramfs hooks should do all additionally
required work for you when the initramfs is created or updated.

Be warned though, that for such devices the GnuPG encrypted key is copied to
the initramfs by the initramfs cryptgnupg hook. If you don't want this, you
should take a look at the initramfs cryptgnupg hook, which is located at
/usr/share/initramfs-tools/hooks/cryptgnupg.

Filemanager

Name Type Size Permission Actions
examples Folder 0755
AUTHORS File 102 B 0644
FAQ.gz File 42.41 KB 0644
NEWS.Debian.gz File 3.57 KB 0644
README.Debian.gz File 5.05 KB 0644
README.gnupg File 1.59 KB 0644
README.initramfs.gz File 4.15 KB 0644
README.keyctl File 3.04 KB 0644
README.openct.gz File 2.34 KB 0644
README.opensc.gz File 2.23 KB 0644
TODO.Debian File 3.58 KB 0644
changelog.Debian.gz File 2.94 KB 0644
copyright File 4.83 KB 0644
v1.0.7-ReleaseNotes File 2.85 KB 0644
v1.1.0-ReleaseNotes.gz File 2.22 KB 0644
v1.1.1-ReleaseNotes File 1.75 KB 0644
v1.1.2-ReleaseNotes File 1.56 KB 0644
v1.1.3-ReleaseNotes File 482 B 0644
v1.2.0-ReleaseNotes.gz File 2.07 KB 0644
v1.3.0-ReleaseNotes.gz File 2.08 KB 0644
v1.3.1-ReleaseNotes File 421 B 0644
v1.4.0-ReleaseNotes.gz File 2.2 KB 0644
v1.4.1-ReleaseNotes File 889 B 0644
v1.4.2-ReleaseNotes File 1.59 KB 0644
v1.4.3-ReleaseNotes File 2.3 KB 0644
v1.5.0-ReleaseNotes.gz File 3.24 KB 0644
v1.5.1-ReleaseNotes File 1.26 KB 0644
v1.6.0-ReleaseNotes.gz File 3.73 KB 0644
v1.6.1-ReleaseNotes File 1.02 KB 0644
v1.6.2-ReleaseNotes File 985 B 0644
v1.6.3-ReleaseNotes File 1.82 KB 0644
v1.6.4-ReleaseNotes File 1.99 KB 0644
v1.6.5-ReleaseNotes File 2.42 KB 0644
v1.6.6-ReleaseNotes File 1.07 KB 0644
v1.6.7-ReleaseNotes File 3.25 KB 0644
v1.6.8-ReleaseNotes File 2.01 KB 0644
v1.7.0-ReleaseNotes File 3.03 KB 0644
v1.7.1-ReleaseNotes File 1.34 KB 0644
v1.7.2-ReleaseNotes File 1.45 KB 0644
v1.7.3-ReleaseNotes File 811 B 0644
v1.7.4-ReleaseNotes File 657 B 0644
v1.7.5-ReleaseNotes File 833 B 0644
v2.0.0-ReleaseNotes.gz File 9.5 KB 0644
v2.0.1-ReleaseNotes.gz File 2.17 KB 0644
v2.0.2-ReleaseNotes.gz File 1.95 KB 0644