Imported Upstream version 2.6.0p1
[debian/amanda] / man / amcrypt-ossl-asym.8
1 .\"     Title: amcrypt-ossl-asym
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4 .\"      Date: 05/14/2008
5 .\"    Manual: 
6 .\"    Source: 
7 .\"
8 .TH "AMCRYPT\-OSSL\-ASYM" "8" "05/14/2008" "" ""
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 amcrypt-ossl-asym - crypt program for Amanda asymmetric data encryption using OpenSSL
15 .SH "SYNOPSIS"
16 .HP 18
17 \fBamcrypt\-ossl\-asym\fR [\-d]
18 .SH "DESCRIPTION"
19 .PP
20
21 \fBamcrypt\-ossl\-asym\fR
22 uses
23 \fBOpenSSL\fR
24 to encrypt and decrypt data\. OpenSSL is available from
25 \fIwww\.openssl\.org\fR\&[1]\. OpenSSL offers a wide variety of cipher choices (
26 \fBamcrypt\-ossl\-asym\fR
27 defaults to 256\-bit AES) and can use hardware cryptographic accelerators on several platforms\.
28 .PP
29
30 \fBamcrypt\-ossl\-asym\fR
31 will search for the OpenSSL program in the following directories: /bin:/usr/bin:/usr/local/bin:/usr/ssl/bin:/usr/local/ssl/bin\.
32 .SH "GENERATING PUBLIC AND PRIVATE KEYS"
33 .PP
34 RSA keys can be generated with the standard OpenSSL commands, e\.g\.:
35 .sp
36 .RS 4
37 .nf
38 $ cd /var/lib/amanda
39 $ openssl genrsa \-aes128 \-out backup\-privkey\.pem 1024
40 Generating RSA private key, 1024 bit long modulus
41 [\.\.\.]
42 Enter pass phrase for backup\-privkey\.pem: \fIENTER YOUR PASS PHRASE\fR
43 Verifying \- Enter pass phrase for backup\-key\.pem: \fIENTER YOUR PASS PHRASE\fR
44
45 $ openssl rsa \-in backup\-privkey\.pem \-pubout \-out backup\-pubkey\.pem
46 Enter pass phrase for backup\-privkey\.pem: \fIENTER YOUR PASS PHRASE\fR
47 Writing RSA key
48
49 .fi
50 .RE
51 .PP
52 To generate a private key without a passphrase, omit the
53 \fB\-aes128\fR
54 option\. See
55 \fBopenssl_genrsa\fR(1)
56 for more key generation options\.
57 .PP
58 Note that it is always possible to generate the public key from the private key\.
59 .SH "KEY AND PASSPHRASE MANAGEMENT"
60 .PP
61
62 \fBamcrypt\-ossl\-asym\fR
63 uses the
64 \fIpublic key\fR
65 to encrypt data\. The security of the data does not depend on the confidentiality of the public key\. The
66 \fIprivate key\fR
67 is used to decrypt data, and must be protected\. Encrypted backup data cannot be recovered without the private key\. The private key may optionally be encrypted with a passphrase\.
68 .PP
69 While the public key must be online at all times to perorm backups, the private key and optional passphrase are only needed to restore data\. It is recommended that the latter be stored offline all other times\. For example, you could keep the private key on removable media, and copy it into place for a restore; or you could keep the private key online, encrypted with a passphrase that is present only for a restore\.
70 .PP
71 OpenSSL\'s key derivation routines use a salt to guard against dictionary attacks on the pass phrase; still it is important to pick a pass phrase that is hard to guess\. The Diceware method (see
72 \fIwww\.diceware\.com\fR\&[2]) can be used to create passphrases that are difficult to guess and easy to remember\.
73 .SH "FILES"
74 .PP
75 /var/lib/amanda/backup\-privkey\.pem
76 .RS 4
77 File containing the RSA private key\. It should not be readable by any user other than the
78 \fIAmanda\fR
79 user\.
80 .RE
81 .PP
82 /var/lib/amanda/backup\-pubkey\.pem
83 .RS 4
84 File containing the RSA public key\.
85 .RE
86 .PP
87 /var/lib/amanda/\.am_passphrase
88 .RS 4
89 File containing the passphrase\. It should not be readable by any user other than the
90 \fIAmanda\fR
91 user\.
92 .RE
93 .SH "SEE ALSO"
94 .PP
95
96 \fBamanda\fR(8),
97 \fBamanda.conf\fR(5),
98 \fBopenssl\fR(1),
99 \fBamcrypt-ossl\fR(8),
100 \fI\%http://wiki.zmanda.com\fR
101 .SH "NOTES"
102 .IP " 1." 4
103 www.openssl.org
104 .RS 4
105 \%http://www.openssl.org/
106 .RE
107 .IP " 2." 4
108 www.diceware.com
109 .RS 4
110 \%http://www.diceware.com/
111 .RE