1 .\" $Id: plainrsa-gen.8,v 1.2.10.1 2005/04/18 11:10:55 manubsd Exp $
3 .\" Copyright (C) 2004 SuSE Linux AG, Nuernberg, Germany.
4 .\" Contributed by: Michal Ludvig <mludvig@suse.cz>, SUSE Labs
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
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.
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
37 .Nd generator for Plain RSA keys
50 can be used to generate
52 for authentication purposes.
56 Other possibilities are
59 .Li X.509 certificates .
63 bit length of the key.
71 Note that generating longer keys takes more time.
73 value of the RSA public exponent.
76 Don't change this unless you really know what you are doing!
78 write the resulting key to
82 If the file already exists it won't be overwritten.
83 You wouldn't like to lose your private key by accident, would you?
86 .Sh OUTPUT FILE FORMAT
95 # pubkey=0sAQOrWlcwbAIdNSMhDt...
96 Modulus: 0xab5a57306c021d3523...
98 PrivateExponent: 0x723c3a2048...
99 Prime1: 0xd309b30e6adf9d85c01...
100 Prime2: 0xcfdc2a8aa5b2b3c90e3...
101 Exponent1: 0x8cb122099c9513ae...
102 Exponent2: 0x8a92c7071921cd30...
103 Coefficient: 0x722751305eafe9...
108 .Li pubkey=0sAQOrW...
113 that should be stored in the other peer's configuration in this format:
115 : PUB 0sAQOrWlcwbAIdNSMhDt...
123 addresses for which the key is valid:
125 0.0.0.0/0 10.20.30.0/24 : PUB 0sAQOrWlcwbAIdNSMhDt...
135 .An Michal Ludvig Aq michal@logix.cz
136 and first appeared in
137 .Ic ipsec-tools 0.4 .