/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-keygen.xml

  • Committer: Teddy Hogeborn
  • Date: 2008-08-31 10:44:32 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080831104432-9hzi47foc7tlmade
* plugins.d/password-prompt.xml (OPTIONS): Move <replaceable> tags to
                                           inside <option> tags.
                                           Moved long options before
                                           short.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3
3
        "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 
4
<!ENTITY VERSION "1.0">
4
5
<!ENTITY COMMANDNAME "mandos-keygen">
5
 
<!ENTITY TIMESTAMP "2015-07-20">
6
 
<!ENTITY % common SYSTEM "common.ent">
7
 
%common;
 
6
<!ENTITY TIMESTAMP "2008-08-31">
8
7
]>
9
8
 
10
9
<refentry xmlns:xi="http://www.w3.org/2001/XInclude">
12
11
    <title>Mandos Manual</title>
13
12
    <!-- NWalsh’s docbook scripts use this to generate the footer: -->
14
13
    <productname>Mandos</productname>
15
 
    <productnumber>&version;</productnumber>
 
14
    <productnumber>&VERSION;</productnumber>
16
15
    <date>&TIMESTAMP;</date>
17
16
    <authorgroup>
18
17
      <author>
19
18
        <firstname>Björn</firstname>
20
19
        <surname>Påhlsson</surname>
21
20
        <address>
22
 
          <email>belorn@recompile.se</email>
 
21
          <email>belorn@fukt.bsnet.se</email>
23
22
        </address>
24
23
      </author>
25
24
      <author>
26
25
        <firstname>Teddy</firstname>
27
26
        <surname>Hogeborn</surname>
28
27
        <address>
29
 
          <email>teddy@recompile.se</email>
 
28
          <email>teddy@fukt.bsnet.se</email>
30
29
        </address>
31
30
      </author>
32
31
    </authorgroup>
33
32
    <copyright>
34
33
      <year>2008</year>
35
 
      <year>2009</year>
36
 
      <year>2010</year>
37
 
      <year>2011</year>
38
 
      <year>2012</year>
39
 
      <year>2013</year>
40
 
      <year>2014</year>
41
 
      <year>2015</year>
42
34
      <holder>Teddy Hogeborn</holder>
43
35
      <holder>Björn Påhlsson</holder>
44
36
    </copyright>
45
 
    <xi:include href="legalnotice.xml"/>
 
37
    <legalnotice>
 
38
      <para>
 
39
        This manual page is free software: you can redistribute it
 
40
        and/or modify it under the terms of the GNU General Public
 
41
        License as published by the Free Software Foundation,
 
42
        either version 3 of the License, or (at your option) any
 
43
        later version.
 
44
      </para>
 
45
 
 
46
      <para>
 
47
        This manual page is distributed in the hope that it will
 
48
        be useful, but WITHOUT ANY WARRANTY; without even the
 
49
        implied warranty of MERCHANTABILITY or FITNESS FOR A
 
50
        PARTICULAR PURPOSE.  See the GNU General Public License
 
51
        for more details.
 
52
      </para>
 
53
 
 
54
      <para>
 
55
        You should have received a copy of the GNU General Public
 
56
        License along with this program; If not, see
 
57
        <ulink url="http://www.gnu.org/licenses/"/>.
 
58
      </para>
 
59
    </legalnotice>
46
60
  </refentryinfo>
47
 
  
 
61
 
48
62
  <refmeta>
49
63
    <refentrytitle>&COMMANDNAME;</refentrytitle>
50
64
    <manvolnum>8</manvolnum>
56
70
      Generate key and password for Mandos client and server.
57
71
    </refpurpose>
58
72
  </refnamediv>
59
 
  
 
73
 
60
74
  <refsynopsisdiv>
61
75
    <cmdsynopsis>
62
76
      <command>&COMMANDNAME;</command>
123
137
        <replaceable>TIME</replaceable></option></arg>
124
138
      </group>
125
139
      <sbr/>
126
 
      <group>
127
 
        <arg choice="plain"><option>--force</option></arg>
128
 
        <arg choice="plain"><option>-f</option></arg>
129
 
      </group>
 
140
      <arg><option>--force</option></arg>
130
141
    </cmdsynopsis>
131
142
    <cmdsynopsis>
132
143
      <command>&COMMANDNAME;</command>
133
144
      <group choice="req">
134
145
        <arg choice="plain"><option>--password</option></arg>
135
146
        <arg choice="plain"><option>-p</option></arg>
136
 
        <arg choice="plain"><option>--passfile
137
 
        <replaceable>FILE</replaceable></option></arg>
138
 
        <arg choice="plain"><option>-F</option>
139
 
        <replaceable>FILE</replaceable></arg>
140
147
      </group>
141
148
      <sbr/>
142
149
      <group>
152
159
        <arg choice="plain"><option>-n
153
160
        <replaceable>NAME</replaceable></option></arg>
154
161
      </group>
155
 
      <group>
156
 
        <arg choice="plain"><option>--no-ssh</option></arg>
157
 
        <arg choice="plain"><option>-S</option></arg>
158
 
      </group>
159
162
    </cmdsynopsis>
160
163
    <cmdsynopsis>
161
164
      <command>&COMMANDNAME;</command>
178
181
    <para>
179
182
      <command>&COMMANDNAME;</command> is a program to generate the
180
183
      OpenPGP key used by
181
 
      <citerefentry><refentrytitle>mandos-client</refentrytitle>
 
184
      <citerefentry><refentrytitle>password-request</refentrytitle>
182
185
      <manvolnum>8mandos</manvolnum></citerefentry>.  The key is
183
186
      normally written to /etc/mandos for later installation into the
184
187
      initrd image, but this, and most other things, can be changed
186
189
    </para>
187
190
    <para>
188
191
      This program can also be used with the
189
 
      <option>--password</option> or <option>--passfile</option>
190
 
      options to generate a ready-made section for
191
 
      <filename>clients.conf</filename> (see
 
192
      <option>--password</option> option to generate a ready-made
 
193
      section for <filename>clients.conf</filename> (see
192
194
      <citerefentry><refentrytitle>mandos-clients.conf</refentrytitle>
193
195
      <manvolnum>5</manvolnum></citerefentry>).
194
196
    </para>
217
219
          </para>
218
220
        </listitem>
219
221
      </varlistentry>
220
 
      
 
222
 
221
223
      <varlistentry>
222
224
        <term><option>--dir
223
225
        <replaceable>DIRECTORY</replaceable></option></term>
226
228
        <listitem>
227
229
          <para>
228
230
            Target directory for key files.  Default is
229
 
            <filename class="directory">/etc/mandos</filename>.
 
231
            <filename>/etc/mandos</filename>.
230
232
          </para>
231
233
        </listitem>
232
234
      </varlistentry>
233
 
      
 
235
 
234
236
      <varlistentry>
235
237
        <term><option>--type
236
238
        <replaceable>TYPE</replaceable></option></term>
238
240
        <replaceable>TYPE</replaceable></option></term>
239
241
        <listitem>
240
242
          <para>
241
 
            Key type.  Default is <quote>RSA</quote>.
 
243
            Key type.  Default is <quote>DSA</quote>.
242
244
          </para>
243
245
        </listitem>
244
246
      </varlistentry>
245
 
      
 
247
 
246
248
      <varlistentry>
247
249
        <term><option>--length
248
250
        <replaceable>BITS</replaceable></option></term>
250
252
        <replaceable>BITS</replaceable></option></term>
251
253
        <listitem>
252
254
          <para>
253
 
            Key length in bits.  Default is 4096.
 
255
            Key length in bits.  Default is 2048.
254
256
          </para>
255
257
        </listitem>
256
258
      </varlistentry>
257
 
      
 
259
 
258
260
      <varlistentry>
259
261
        <term><option>--subtype
260
262
        <replaceable>KEYTYPE</replaceable></option></term>
262
264
        <replaceable>KEYTYPE</replaceable></option></term>
263
265
        <listitem>
264
266
          <para>
265
 
            Subkey type.  Default is <quote>RSA</quote> (Elgamal
 
267
            Subkey type.  Default is <quote>ELG-E</quote> (Elgamal
266
268
            encryption-only).
267
269
          </para>
268
270
        </listitem>
269
271
      </varlistentry>
270
 
      
 
272
 
271
273
      <varlistentry>
272
274
        <term><option>--sublength
273
275
        <replaceable>BITS</replaceable></option></term>
275
277
        <replaceable>BITS</replaceable></option></term>
276
278
        <listitem>
277
279
          <para>
278
 
            Subkey length in bits.  Default is 4096.
 
280
            Subkey length in bits.  Default is 2048.
279
281
          </para>
280
282
        </listitem>
281
283
      </varlistentry>
282
 
      
 
284
 
283
285
      <varlistentry>
284
286
        <term><option>--email
285
287
        <replaceable>ADDRESS</replaceable></option></term>
291
293
          </para>
292
294
        </listitem>
293
295
      </varlistentry>
294
 
      
 
296
 
295
297
      <varlistentry>
296
298
        <term><option>--comment
297
299
        <replaceable>TEXT</replaceable></option></term>
299
301
        <replaceable>TEXT</replaceable></option></term>
300
302
        <listitem>
301
303
          <para>
302
 
            Comment field for key.  Default is empty.
 
304
            Comment field for key.  The default value is
 
305
            <quote><literal>Mandos client key</literal></quote>.
303
306
          </para>
304
307
        </listitem>
305
308
      </varlistentry>
306
 
      
 
309
 
307
310
      <varlistentry>
308
311
        <term><option>--expire
309
312
        <replaceable>TIME</replaceable></option></term>
317
320
          </para>
318
321
        </listitem>
319
322
      </varlistentry>
320
 
      
 
323
 
321
324
      <varlistentry>
322
325
        <term><option>--force</option></term>
323
326
        <term><option>-f</option></term>
345
348
          </para>
346
349
        </listitem>
347
350
      </varlistentry>
348
 
      <varlistentry>
349
 
        <term><option>--passfile
350
 
        <replaceable>FILE</replaceable></option></term>
351
 
        <term><option>-F
352
 
        <replaceable>FILE</replaceable></option></term>
353
 
        <listitem>
354
 
          <para>
355
 
            The same as <option>--password</option>, but read from
356
 
            <replaceable>FILE</replaceable>, not the terminal.
357
 
          </para>
358
 
        </listitem>
359
 
      </varlistentry>
360
 
      <varlistentry>
361
 
        <term><option>--no-ssh</option></term>
362
 
        <term><option>-S</option></term>
363
 
        <listitem>
364
 
          <para>
365
 
            When <option>--password</option> or
366
 
            <option>--passfile</option> is given, this option will
367
 
            prevent <command>&COMMANDNAME;</command> from calling
368
 
            <command>ssh-keyscan</command> to get an SSH fingerprint
369
 
            for this host and, if successful, output suitable config
370
 
            options to use this fingerprint as a
371
 
            <option>checker</option> option in the output.  This is
372
 
            otherwise the default behavior.
373
 
          </para>
374
 
        </listitem>
375
 
      </varlistentry>
376
351
    </variablelist>
377
352
  </refsect1>
378
 
  
 
353
 
379
354
  <refsect1 id="overview">
380
355
    <title>OVERVIEW</title>
381
356
    <xi:include href="overview.xml"/>
385
360
      <filename>clients.conf</filename> on the server.
386
361
    </para>
387
362
  </refsect1>
388
 
  
 
363
 
389
364
  <refsect1 id="exit_status">
390
365
    <title>EXIT STATUS</title>
391
366
    <para>
411
386
    </variablelist>
412
387
  </refsect1>
413
388
  
414
 
  <refsect1 id="files">
 
389
  <refsect1 id="file">
415
390
    <title>FILES</title>
416
391
    <para>
417
392
      Use the <option>--dir</option> option to change where
438
413
        </listitem>
439
414
      </varlistentry>
440
415
      <varlistentry>
441
 
        <term><filename class="directory">/tmp</filename></term>
 
416
        <term><filename>/tmp</filename></term>
442
417
        <listitem>
443
418
          <para>
444
419
            Temporary files will be written here if
448
423
      </varlistentry>
449
424
    </variablelist>
450
425
  </refsect1>
451
 
  
452
 
<!--   <refsect1 id="bugs"> -->
453
 
<!--     <title>BUGS</title> -->
454
 
<!--     <para> -->
455
 
<!--     </para> -->
456
 
<!--   </refsect1> -->
457
 
  
 
426
 
 
427
  <refsect1 id="bugs">
 
428
    <title>BUGS</title>
 
429
    <para>
 
430
      None are known at this time.
 
431
    </para>
 
432
  </refsect1>
 
433
 
458
434
  <refsect1 id="example">
459
435
    <title>EXAMPLE</title>
460
436
    <informalexample>
479
455
    </informalexample>
480
456
    <informalexample>
481
457
      <para>
482
 
        Prompt for a password, encrypt it with the key in <filename
483
 
        class="directory">/etc/mandos</filename> and output a section
484
 
        suitable for <filename>clients.conf</filename>.
 
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>.
485
461
      </para>
486
462
      <para>
487
463
        <userinput>&COMMANDNAME; --password</userinput>
501
477
      </para>
502
478
    </informalexample>
503
479
  </refsect1>
504
 
  
 
480
 
505
481
  <refsect1 id="security">
506
482
    <title>SECURITY</title>
507
483
    <para>
516
492
      <manvolnum>8</manvolnum></citerefentry>.
517
493
    </para>
518
494
  </refsect1>
519
 
  
 
495
 
520
496
  <refsect1 id="see_also">
521
497
    <title>SEE ALSO</title>
522
498
    <para>
523
 
      <citerefentry><refentrytitle>intro</refentrytitle>
524
 
      <manvolnum>8mandos</manvolnum></citerefentry>,
525
499
      <citerefentry><refentrytitle>gpg</refentrytitle>
526
500
      <manvolnum>1</manvolnum></citerefentry>,
527
501
      <citerefentry><refentrytitle>mandos-clients.conf</refentrytitle>
528
502
      <manvolnum>5</manvolnum></citerefentry>,
529
503
      <citerefentry><refentrytitle>mandos</refentrytitle>
530
504
      <manvolnum>8</manvolnum></citerefentry>,
531
 
      <citerefentry><refentrytitle>mandos-client</refentrytitle>
532
 
      <manvolnum>8mandos</manvolnum></citerefentry>,
533
 
      <citerefentry><refentrytitle>ssh-keyscan</refentrytitle>
534
 
      <manvolnum>1</manvolnum></citerefentry>
 
505
      <citerefentry><refentrytitle>password-request</refentrytitle>
 
506
      <manvolnum>8mandos</manvolnum></citerefentry>
535
507
    </para>
536
508
  </refsect1>
537
509