3041dd15e8eb36c719a6814c9d04240c016e242d
[debian/amanda] / man / amcrypt.8
1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
2 .de Sh \" Subsection
3 .br
4 .if t .Sp
5 .ne 5
6 .PP
7 \fB\\$1\fR
8 .PP
9 ..
10 .de Sp \" Vertical space (when we can't use .PP)
11 .if t .sp .5v
12 .if n .sp
13 ..
14 .de Ip \" List item
15 .br
16 .ie \\n(.$>=3 .ne \\$3
17 .el .ne 3
18 .IP "\\$1" \\$2
19 ..
20 .TH "AMCRYPT" 8 "" "" ""
21 .SH "NAME"
22 amcrypt - reference crypt program for Amanda symmetric data encryption
23 .SH "SYNOPSIS"
24 .HP 8
25 \fBamcrypt\fR
26 .SH "DESCRIPTION"
27 .PP
28 \fBamcrypt\fR
29 requires
30 \fBaespipe\fR
31 and
32 \fBgpg\fR
33 to work. Aespipe is available from
34 : http://loop-aes.sourceforge.net
35 .PP
36 \fBamcrypt\fR
37 will search for the aespipe program in the following directories: /usr/bin:/usr/local/bin:/sbin:/usr/sbin.
38 \fBamcrypt\fR calls  \fBamaespipe\fR and pass the
39 \fBpassphrase\fR through file descriptor 3.
40 The passphrase should be stored in ~amanda/.am_passphrase.
41 .SH "HOW TO CREATE ENCRYPTION KEYS FOR AMCRYPT"
42
43 1. Create 65 random encryption keys and encrypt those keys using gpg. Reading
44 from /dev/random may take indefinitely long if kernel's random entropy pool
45 is empty. If that happens, do some other work on some other console (use
46 keyboard, mouse and disks). 
47 .PP
48 head -c 2925 /dev/random | uuencode -m - | head -n 66 | tail -n 65 \ | gpg --symmetric -a > ~amanda/.gnupg/am_key.gpg
49 .PP
50 This will ask for a passphrase. Remember this passphrase as you will need it in the next step.
51 .PP
52 2. Store the passphrase inside the home-directory of the AMANDA-user and protect it with proper permissions:
53 .nf
54
55 echo my_secret_passphrase > ~amanda/.am_passphrase
56 chown amanda:disk ~amanda/.am_passphrase
57 chmod 700 ~amanda/.am_passphrase
58 .fi
59 .SH "KEY AND PASSPHRASE"
60 .PP
61 \fBamcrypt\fR
62 uses the same key to encrypt and decrypt data.
63
64 It is very important to store and protect the key and the passphrase
65 properly. Encrypted backup data can \fBonly\fR be recovered with the correct key and
66 passphrase.
67 .SH "SEE ALSO"
68 .PP
69 \fBamanda\fR(8),
70 \fBamanda.conf\fR(5),
71 \fBaespipe\fR(1),
72 \fBamaespipe\fR(8),
73 \fBgpg\fR(1)
74