]> git.saurik.com Git - apple/ipsec.git/blame - ipsec-tools/racoon/plainrsa-gen.8
ipsec-164.10.tar.gz
[apple/ipsec.git] / ipsec-tools / racoon / plainrsa-gen.8
CommitLineData
52b7d2ce
A
1.\" $Id: plainrsa-gen.8,v 1.2.10.1 2005/04/18 11:10:55 manubsd Exp $
2.\"
3.\" Copyright (C) 2004 SuSE Linux AG, Nuernberg, Germany.
4.\" Contributed by: Michal Ludvig <mludvig@suse.cz>, SUSE Labs
5.\" All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright
11.\" notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\" notice, this list of conditions and the following disclaimer in the
14.\" documentation and/or other materials provided with the distribution.
15.\" 3. Neither the name of the project nor the names of its contributors
16.\" may be used to endorse or promote products derived from this software
17.\" without specific prior written permission.
18.\"
19.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22.\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.Dd June 14, 2004
32.Dt PLAINRSA-GEN 8
33.Os
34.\"
35.Sh NAME
36.Nm plainrsa-gen
37.Nd generator for Plain RSA keys
38.\"
39.Sh SYNOPSIS
40.Nm plainrsa-gen
41.Bk -words
42.Op Fl b Ar bits
43.Op Fl e Ar pubexp
44.Op Fl f Ar outfile
45.Op Fl h
46.Ek
47.\"
48.Sh DESCRIPTION
49.Nm
50can be used to generate
51.Li Plain RSA keys
52for authentication purposes.
53Using
54.Li Plain RSA keys
55is optional.
56Other possibilities are
57.Li Pre-shared keys
58or
59.Li X.509 certificates .
60.\"
61.Bl -tag -width Ds
62.It Fl b Ar bits
63bit length of the key.
64Default is
65.Li 1024 ,
66recommended length is
67.Li 2048
68or even
69.Li 4096
70bits.
71Note that generating longer keys takes more time.
72.It Fl e Ar pubexp
73value of the RSA public exponent.
74Default is
75.Li 0x3 .
76Don't change this unless you really know what you are doing!
77.It Fl f Ar outfile
78write the resulting key to
79.Ar outfile
80instead of
81.Li stdout .
82If the file already exists it won't be overwritten.
83You wouldn't like to lose your private key by accident, would you?
84.El
85.\"
86.Sh OUTPUT FILE FORMAT
87This is the secret
88.Li private key
89that should
90.Ic never
91leave your computer:
92.Bd -literal
93: RSA {
94 # RSA 1024 bits
95 # pubkey=0sAQOrWlcwbAIdNSMhDt...
96 Modulus: 0xab5a57306c021d3523...
97 PublicExponent: 0x03
98 PrivateExponent: 0x723c3a2048...
99 Prime1: 0xd309b30e6adf9d85c01...
100 Prime2: 0xcfdc2a8aa5b2b3c90e3...
101 Exponent1: 0x8cb122099c9513ae...
102 Exponent2: 0x8a92c7071921cd30...
103 Coefficient: 0x722751305eafe9...
104 }
105.Ed
106.Pp
107The line
108.Li pubkey=0sAQOrW...
109of the
110.Li private key
111contains a
112.Li public key
113that should be stored in the other peer's configuration in this format:
114.Bd -literal
115: PUB 0sAQOrWlcwbAIdNSMhDt...
116.Ed
117.\"
118.Pp
119You can also specify
120.Li from
121and
122.Li to
123addresses for which the key is valid:
124.Bd -literal
1250.0.0.0/0 10.20.30.0/24 : PUB 0sAQOrWlcwbAIdNSMhDt...
126.Ed
127.\"
128.Sh SEE ALSO
129.Xr racoon.conf 5 ,
130.Xr racoon 8
131.\"
132.Sh HISTORY
133.Nm
134was written by
135.An Michal Ludvig Aq michal@logix.cz
136and first appeared in
137.Ic ipsec-tools 0.4 .