1 .\" $Id: plainrsa-gen.8,v 1.2 2004/07/12 20:43:50 ludvigm 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 of Plain RSA keys
50 can be used to generate
52 for authentication purposes. Using
54 is optional. Other possibilities are
57 .Pa X.509 certificates .
61 bit length of the key. Default is
67 bits. Note that generating longer keys takes longer time.
69 value of RSA public exponent. Default is
71 Don't change unless you really know what you are doing!
73 write the resulting key to
77 If the file already exists it won't be overwritten. You wouldn't like to loose your private key by accident, would you?
80 .Sh OUTPUT FILE FORMAT
89 # pubkey=0sAQOrWlcwbAIdNSMhDt...
90 Modulus: 0xab5a57306c021d3523...
92 PrivateExponent: 0x723c3a2048...
93 Prime1: 0xd309b30e6adf9d85c01...
94 Prime2: 0xcfdc2a8aa5b2b3c90e3...
95 Exponent1: 0x8cb122099c9513ae...
96 Exponent2: 0x8a92c7071921cd30...
97 Coefficient: 0x722751305eafe9...
102 .Pa pubkey=0sAQOrW...
107 that should be stored in the other peer's configuration in this format:
109 : PUB 0sAQOrWlcwbAIdNSMhDt...
117 addresses for which the key is valid:
119 0.0.0.0/0 10.20.30.0/24 : PUB 0sAQOrWlcwbAIdNSMhDt...
132 .Pa Michal Ludvig <michal@logix.cz>
134 .Ic ipsec-tools 0.4 .