3
3
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4
4
<!ENTITY VERSION "1.0">
5
5
<!ENTITY COMMANDNAME "mandos-keygen">
6
<!ENTITY TIMESTAMP "2008-08-31">
6
<!ENTITY TIMESTAMP "2008-08-30">
9
9
<refentry xmlns:xi="http://www.w3.org/2001/XInclude">
68
68
<refname><command>&COMMANDNAME;</command></refname>
70
Generate key and password for Mandos client and server.
70
Generate keys for <citerefentry><refentrytitle>password-request
71
</refentrytitle><manvolnum>8mandos</manvolnum></citerefentry>
164
165
<command>&COMMANDNAME;</command>
165
166
<group choice="req">
167
<arg choice="plain"><option>-h</option></arg>
166
168
<arg choice="plain"><option>--help</option></arg>
167
<arg choice="plain"><option>-h</option></arg>
171
172
<command>&COMMANDNAME;</command>
172
173
<group choice="req">
174
<arg choice="plain"><option>-v</option></arg>
173
175
<arg choice="plain"><option>--version</option></arg>
174
<arg choice="plain"><option>-v</option></arg>
177
178
</refsynopsisdiv>
179
180
<refsect1 id="description">
180
181
<title>DESCRIPTION</title>
182
183
<command>&COMMANDNAME;</command> is a program to generate the
184
185
<citerefentry><refentrytitle>password-request</refentrytitle>
185
<manvolnum>8mandos</manvolnum></citerefentry>. The key is
186
<manvolnum>8mandos</manvolnum></citerefentry>. The keys are
186
187
normally written to /etc/mandos for later installation into the
187
initrd image, but this, and most other things, can be changed
188
with command line options.
188
initrd image, but this, like most things, can be changed with
189
command line options.
191
This program can also be used with the
192
<option>--password</option> option to generate a ready-made
193
section for <filename>clients.conf</filename> (see
192
It can also be used to generate ready-made sections for
194
193
<citerefentry><refentrytitle>mandos-clients.conf</refentrytitle>
195
<manvolnum>5</manvolnum></citerefentry>).
194
<manvolnum>5</manvolnum></citerefentry> using the
195
<option>--password</option> option.
199
199
<refsect1 id="purpose">
200
200
<title>PURPOSE</title>
202
203
The purpose of this is to enable <emphasis>remote and unattended
203
204
rebooting</emphasis> of client host computer with an
204
205
<emphasis>encrypted root file system</emphasis>. See <xref
205
206
linkend="overview"/> for details.
209
211
<refsect1 id="options">
210
212
<title>OPTIONS</title>
214
<term><option>--help</option></term>
215
<term><option>-h</option></term>
216
<term><literal>-h</literal>, <literal>--help</literal></term>
218
219
Show a help message and exit
225
<replaceable>DIRECTORY</replaceable></option></term>
227
<replaceable>DIRECTORY</replaceable></option></term>
225
<term><literal>-d</literal>, <literal>--dir
226
<replaceable>directory</replaceable></literal></term>
230
229
Target directory for key files. Default is
238
<replaceable>TYPE</replaceable></option></term>
240
<replaceable>TYPE</replaceable></option></term>
236
<term><literal>-t</literal>, <literal>--type
237
<replaceable>type</replaceable></literal></term>
243
240
Key type. Default is <quote>DSA</quote>.
249
<term><option>--length
250
<replaceable>BITS</replaceable></option></term>
252
<replaceable>BITS</replaceable></option></term>
246
<term><literal>-l</literal>, <literal>--length
247
<replaceable>bits</replaceable></literal></term>
255
250
Key length in bits. Default is 2048.
261
<term><option>--subtype
262
<replaceable>KEYTYPE</replaceable></option></term>
264
<replaceable>KEYTYPE</replaceable></option></term>
256
<term><literal>-s</literal>, <literal>--subtype
257
<replaceable>type</replaceable></literal></term>
267
260
Subkey type. Default is <quote>ELG-E</quote> (Elgamal
274
<term><option>--sublength
275
<replaceable>BITS</replaceable></option></term>
277
<replaceable>BITS</replaceable></option></term>
267
<term><literal>-L</literal>, <literal>--sublength
268
<replaceable>bits</replaceable></literal></term>
280
271
Subkey length in bits. Default is 2048.
286
<term><option>--email
287
<replaceable>ADDRESS</replaceable></option></term>
289
<replaceable>ADDRESS</replaceable></option></term>
277
<term><literal>-e</literal>, <literal>--email</literal>
278
<replaceable>address</replaceable></term>
292
281
Email address of key. Default is empty.
298
<term><option>--comment
299
<replaceable>TEXT</replaceable></option></term>
301
<replaceable>TEXT</replaceable></option></term>
287
<term><literal>-c</literal>, <literal>--comment</literal>
288
<replaceable>comment</replaceable></term>
304
291
Comment field for key. The default value is
311
<term><option>--expire
312
<replaceable>TIME</replaceable></option></term>
314
<replaceable>TIME</replaceable></option></term>
298
<term><literal>-x</literal>, <literal>--expire</literal>
299
<replaceable>time</replaceable></term>
317
302
Key expire time. Default is no expiration. See
325
<term><option>--force</option></term>
326
<term><option>-f</option></term>
310
<term><literal>-f</literal>, <literal>--force</literal></term>
329
Force overwriting old key.
313
Force overwriting old keys.
334
<term><option>--password</option></term>
335
<term><option>-p</option></term>
318
<term><literal>-p</literal>, <literal>--password</literal
338
322
Prompt for a password and encrypt it with the key already
356
340
<xi:include href="overview.xml"/>
358
342
This program is a small utility to generate new OpenPGP keys for
359
new Mandos clients, and to generate sections for inclusion in
360
<filename>clients.conf</filename> on the server.
364
347
<refsect1 id="exit_status">
365
348
<title>EXIT STATUS</title>
367
The exit status will be 0 if a new key (or password, if the
368
<option>--password</option> option was used) was successfully
369
created, otherwise not.
350
The exit status will be 0 if new keys were successfully created,
455
437
</informalexample>
458
Prompt for a password, encrypt it with the key in
459
<filename>/etc/mandos</filename> and output a section suitable
460
for <filename>clients.conf</filename>.
463
<userinput>&COMMANDNAME; --password</userinput>
468
Prompt for a password, encrypt it with the key in the
469
<filename>client-key</filename> directory and output a section
470
suitable for <filename>clients.conf</filename>.
474
<!-- do not wrap this line -->
475
<userinput>&COMMANDNAME; --password --dir client-key</userinput>
481
440
<refsect1 id="security">
484
443
The <option>--type</option>, <option>--length</option>,
485
444
<option>--subtype</option>, and <option>--sublength</option>
486
options can be used to create keys of low security. If in
487
doubt, leave them to the default values.
445
options can be used to create keys of insufficient security. If
446
in doubt, leave them to the default values.
490
The key expire time is <emphasis>not</emphasis> guaranteed to be
491
honored by <citerefentry><refentrytitle>mandos</refentrytitle>
449
The key expire time is not guaranteed to be honored by
450
<citerefentry><refentrytitle>mandos</refentrytitle>
492
451
<manvolnum>8</manvolnum></citerefentry>.
499
458
<citerefentry><refentrytitle>gpg</refentrytitle>
500
459
<manvolnum>1</manvolnum></citerefentry>,
501
<citerefentry><refentrytitle>mandos-clients.conf</refentrytitle>
502
<manvolnum>5</manvolnum></citerefentry>,
503
460
<citerefentry><refentrytitle>mandos</refentrytitle>
504
461
<manvolnum>8</manvolnum></citerefentry>,
505
462
<citerefentry><refentrytitle>password-request</refentrytitle>