1 .\" $NetBSD: plainrsa-gen.8,v 1.12 2006/09/19 18:53:32 wiz Exp $
3 .\" Id: plainrsa-gen.8,v 1.4 2005/04/18 11:07:55 manubsd Exp
5 .\" Copyright (C) 2004 SuSE Linux AG, Nuernberg, Germany.
6 .\" Contributed by: Michal Ludvig <mludvig@suse.cz>, SUSE Labs
7 .\" All rights reserved.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
17 .\" 3. Neither the name of the project nor the names of its contributors
18 .\" may be used to endorse or promote products derived from this software
19 .\" without specific prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
22 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
25 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 .Nd generator for Plain RSA keys
52 can be used to generate
54 for authentication purposes.
58 Other possibilities are
61 .Li X.509 certificates .
65 bit length of the key.
73 Note that generating longer keys takes longer time.
75 value of RSA public exponent.
78 Don't change this unless you really know what you are doing!
83 If the file already exists it won't be overwritten.
84 You wouldn't like to lose your private key by accident, would you?
87 .Sh OUTPUT FILE FORMAT
96 # pubkey=0sAQOrWlcwbAIdNSMhDt...
97 Modulus: 0xab5a57306c021d3523...
99 PrivateExponent: 0x723c3a2048...
100 Prime1: 0xd309b30e6adf9d85c01...
101 Prime2: 0xcfdc2a8aa5b2b3c90e3...
102 Exponent1: 0x8cb122099c9513ae...
103 Exponent2: 0x8a92c7071921cd30...
104 Coefficient: 0x722751305eafe9...
109 .Li pubkey=0sAQOrW...
114 that should be stored in the other peer's configuration in this format:
116 : PUB 0sAQOrWlcwbAIdNSMhDt...
124 addresses for which the key is valid:
126 0.0.0.0/0 10.20.30.0/24 : PUB 0sAQOrWlcwbAIdNSMhDt...
136 .An Michal Ludvig Aq michal@logix.cz
137 and first appeared in
138 .Ic ipsec-tools 0.4 .