Imported Upstream version 3.2.0
[debian/amanda] / man / amgpgcrypt.8
1 '\" t
2 .\"     Title: amgpgcrypt
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 "AMGPGCRYPT" "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 amgpgcrypt \- reference crypt program for Amanda public\-key data encryption
23 .SH "SYNOPSIS"
24 .HP \w'\fBamgpgcrypt\fR\ 'u
25 \fBamgpgcrypt\fR  to be called by Amanda only 
26 .SH "DESCRIPTION"
27 .PP
28
29 \fBamgpgcrypt\fR
30 calls
31 \fBgpg\fR
32 to perform public\-key data encryption on Amanda backup\&.
33 \fBamgpgcrypt\fR
34 will search for the gpg program in the following directories: /usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
35 .PP
36
37 \fBamgpgcrypt\fR
38 sets GNUPGHOME to $AMANDA_HOME/\&.gnupg where gpg will look for the gpg keys\&.
39 \fBamgpgcrypt\fR
40 uses the public key to encrypt the Amanda data and uses the private key to decrypt the Amanda backup data\&. Thus, passphrase is only required at the time of data restore\&.
41 .SH "KEY AND PASSPHRASE"
42 .PP
43
44 \fBamgpgcrypt\fR
45 uses the private key to decrypt Amanda backup data\&.
46
47 It is very important to store, manage and  protect the key and the passphrase
48 properly\&. Encrypted backup data can \fBonly\fR be recovered with the correct key and
49 passphrase\&.
50 .SH "HOW TO CREATE ENCRYPTION KEYS AND PASSPHRASE FOR AMGPGCRYPT"
51 .PP
52 Store the passphrase that you used in following "gpg \-\-gen\-key" command inside the home\-directory of the AMANDA\-user($amanda_user) and protect it with proper permissions:
53
54    echo my_secret_passphrase > ~$amanda_user/\&.am_passphrase
55    chown $amanda_user:disk ~$amanda_user/\&.am_passphrase
56    chmod 700 ~$amanda_user/\&.am_passphrase
57 .PP
58 Run "gpg \-\-gen\-key"\&. Below is an example:
59 .nf
60 $ gpg \-\-gen\-key
61 gpg (GnuPG) 1\&.2\&.6; Copyright (C) 2004 Free Software Foundation, Inc\&.
62 This program comes with ABSOLUTELY NO WARRANTY\&.
63 This is free software, and you are welcome to redistribute it
64 under certain conditions\&. See the file COPYING for details\&.
65
66 Please select what kind of key you want:
67    (1) DSA and ElGamal (default)
68    (2) DSA (sign only)
69    (4) RSA (sign only)
70 Your selection? 1
71 DSA keypair will have 1024 bits\&.
72 About to generate a new ELG\-E keypair\&.
73               minimum keysize is  768 bits
74               default keysize is 1024 bits
75     highest suggested keysize is 2048 bits
76 What keysize do you want? (1024)
77 Requested keysize is 1024 bits
78 Please specify how long the key should be valid\&.
79          0 = key does not expire
80       (n)  = key expires in n days
81       (n)w = key expires in n weeks
82       (n)m = key expires in n months
83       (n)y = key expires in n years
84 Key is valid for? (0) 6m
85 Key expires at Sun 06 Aug 2006 03:51:25 PM PDT
86 Is this correct (y/n)? y
87
88 You need a User\-ID to identify your key; the software constructs the user id
89 from Real Name, Comment and Email Address in this form:
90     "Heinrich Heine (Der Dichter) (heinrichh@duesseldorf\&.de)"
91
92 Real name: amandabackup
93 Email address:
94 Comment: gpg keys for amandabackup
95 You selected this USER\-ID:
96     "amandabackup (gpg keys for amandabackup)"
97
98 Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o
99 You need a Passphrase to protect your secret key\&.
100
101 We need to generate a lot of random bytes\&. It is a good idea to perform
102 some other action (type on the keyboard, move the mouse, utilize the
103 disks) during the prime generation; this gives the random number
104 generator a better chance to gain enough entropy\&.
105
106 We need to generate a lot of random bytes\&. It is a good idea to perform
107 some other action (type on the keyboard, move the mouse, utilize the
108 disks) during the prime generation; this gives the random number
109 generator a better chance to gain enough entropy\&.
110
111 public and secret key created and signed\&.
112 key marked as ultimately trusted\&.
113
114 pub  1024D/4417A8CB 2006\-02\-07 amandabackup (gpg keys for amandabackup)
115      Key fingerprint = 139C 6369 44FC 7F1A 655C  E5E9 7EAA 515A 4417 A8CB
116 sub  1024g/8C3A6A78 2006\-02\-07 [expires: 2006\-08\-06]
117 .fi
118 .SH "FILES"
119 .PP
120 \fB$AMANDA_HOME/\&.gnupg/pubring\&.gpg\fR
121 .RS 4
122 The public key\&.
123 \fBamgpgcrypt\fR
124 encrypt data with this public key along with the cipher algorithm\&.
125 .RE
126 .PP
127 \fB$AMANDA_HOME/\&.gnupg/secring\&.gpg\fR
128 .RS 4
129 The private/secret key\&. It\'s only needed during amrecover/amrestore\&. Store and protect it properly during other time\&.
130 .RE
131 .PP
132 \fB$AMANDA_HOME/\&.am_passphrase\fR
133 .RS 4
134 The passphrase\&. It\'s only needed during amrecover/amrestore\&. Store and protect it properly during other time\&.
135 .RE
136 .SH "BUGS"
137 .PP
138 Amanda has problem with gpg mdc(modification detection code) in the binary mode\&.
139 \fBamgpgcrypt\fR
140 calls gpg with mdc disabled
141 .SH "SEE ALSO"
142 .PP
143 \fBamanda\fR(8),
144 \fBamanda.conf\fR(5),
145 \fBamcrypt\fR(8),
146 \fBamrestore\fR(8),
147 \fBgpg\fR(1)
148 .PP
149 The Amanda Wiki:
150 : http://wiki.zmanda.com/
151 .SH "AUTHOR"
152 .PP
153 \fBKevin Till\fR <\&kevin\&.till@zmanda\&.com\&>
154 .RS 4
155 Zmanda, Inc\&. (http://www\&.zmanda\&.com)
156 .RE