Server IP : 127.0.0.2 / Your IP : 3.129.128.179 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/cryptsetup/ |
Upload File : |
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 encrypted root filesystem with GnuPG key ---------------------------------------- In case that you want to encrypt the root filesystem with a GnuPG encrypted key, the provided initramfs hooks should do all additionally required work for you when the initramfs is created or updated. Be warned though, that the GnuPG key for encrypted root is copied to the initramfs by the initramfs cryptgnupg hook. If you don't want your GnuPG key inside the initramfs, you should take a look at the initramfs cryptgnupg hook, which is located at /usr/share/initramfs-tools/hooks/cryptgnupg.