Imported Upstream version 3.2.0
[debian/amanda] / man / amcrypt.8
1 '\" t
2 .\"     Title: amcrypt
3 .\"    Author: Kevin Till <kevin.till@zmanda.com>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
5 .\"      Date: 10/18/2010
6 .\"    Manual: System Administration Commands
7 .\"    Source: Amanda 3.2.0
8 .\"  Language: English
9 .\"
10 .TH "AMCRYPT" "8" "10/18/2010" "Amanda 3\&.2\&.0" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAME"
22 amcrypt \- reference crypt program for Amanda symmetric data encryption
23 .SH "SYNOPSIS"
24 .HP \w'\fBamcrypt\fR\ 'u
25 \fBamcrypt\fR
26 .SH "DESCRIPTION"
27 .PP
28
29 \fBamcrypt\fR
30 requires
31 \fBaespipe\fR,
32 \fBuuencode\fR
33 and
34 \fBgpg\fR
35 to work\&. Aespipe is available from
36 : http://loop-aes.sourceforge.net
37 .PP
38
39 \fBamcrypt\fR
40 will search for the aespipe program in the following directories: /usr/bin:/usr/local/bin:/sbin:/usr/sbin\&.
41 .PP
42
43 \fBamcrypt\fR
44 calls
45 \fBamaespipe\fR
46 and pass the
47 \fBpassphrase\fR
48 through file descriptor 3\&. The passphrase should be stored in ~amanda/\&.am_passphrase\&.
49 .SH "HOW TO CREATE ENCRYPTION KEYS FOR AMCRYPT"
50 .PP
51 1\&. Create 65 random encryption keys and encrypt those keys using gpg\&. Reading from /dev/random may take indefinitely long if kernel\'s random entropy pool is empty\&. If that happens, do some other work on some other console (use keyboard, mouse and disks)\&.
52 .PP
53 head \-c 2925 /dev/random | uuencode \-m \- | head \-n 66 | tail \-n 65 \e | gpg \-\-symmetric \-a > ~amanda/\&.gnupg/am_key\&.gpg
54 .PP
55 This will ask for a passphrase\&. Remember this passphrase as you will need it in the next step\&.
56 .PP
57 2\&. Store the passphrase inside the home\-directory of the AMANDA\-user and protect it with proper permissions:
58 .nf
59 echo my_secret_passphrase > ~amanda/\&.am_passphrase
60 chown amanda:disk ~amanda/\&.am_passphrase
61 chmod 700 ~amanda/\&.am_passphrase
62 .fi
63 .SH "KEY AND PASSPHRASE"
64 .PP
65
66 \fBamcrypt\fR
67 uses the same key to encrypt and decrypt data\&.
68 .PP
69 It is very important to store and protect the key and the passphrase properly\&. Encrypted backup data can
70 \fBonly\fR
71 be recovered with the correct key and passphrase\&.
72 .SH "SEE ALSO"
73 .PP
74 \fBamanda\fR(8),
75 \fBamanda.conf\fR(5),
76 \fBaespipe\fR(1),
77 \fBamaespipe\fR(8),
78 \fBgpg\fR(1)
79 .PP
80 The Amanda Wiki:
81 : http://wiki.zmanda.com/
82 .SH "AUTHOR"
83 .PP
84 \fBKevin Till\fR <\&kevin\&.till@zmanda\&.com\&>
85 .RS 4
86 Zmanda, Inc\&. (http://www\&.zmanda\&.com)
87 .RE