/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

  • Committer: Björn Påhlsson
  • Date: 2012-07-03 20:55:09 UTC
  • Revision ID: belorn@recompile.se-20120703205509-fkeb6uqy4i6gt4b6
added note messages when mandos-monitor starts without running server,
or a server with no clients.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
VERSION="1.6.0"
25
25
 
26
26
KEYDIR="/etc/keys/mandos"
27
 
KEYTYPE=RSA
28
 
KEYLENGTH=4096
29
 
SUBKEYTYPE=RSA
30
 
SUBKEYLENGTH=4096
 
27
KEYTYPE=DSA
 
28
KEYLENGTH=2048
 
29
SUBKEYTYPE=ELG-E
 
30
SUBKEYLENGTH=2048
31
31
KEYNAME="`hostname --fqdn 2>/dev/null || hostname`"
32
32
KEYEMAIL=""
33
33
KEYCOMMENT="Mandos client key"
60
60
  -v, --version         Show program's version number and exit
61
61
  -h, --help            Show this help message and exit
62
62
  -d DIR, --dir DIR     Target directory for key files
63
 
  -t TYPE, --type TYPE  Key type.  Default is RSA.
 
63
  -t TYPE, --type TYPE  Key type.  Default is DSA.
64
64
  -l BITS, --length BITS
65
 
                        Key length in bits.  Default is 4096.
 
65
                        Key length in bits.  Default is 2048.
66
66
  -s TYPE, --subtype TYPE
67
67
                        Subkey type.  Default is ELG-E.
68
68
  -L BITS, --sublength BITS
69
 
                        Subkey length in bits.  Default is 4096.
 
69
                        Subkey length in bits.  Default is 2048.
70
70
  -n NAME, --name NAME  Name of key.  Default is the FQDN.
71
71
  -e ADDRESS, --email ADDRESS
72
72
                        Email address of key.  Default is empty.
294
294
            cat "$PASSFILE"
295
295
        else
296
296
            tty --quiet && stty -echo
297
 
            echo -n "Enter passphrase: "
298
 
            read first
 
297
            read -p "Enter passphrase: " first
299
298
            tty --quiet && echo >&2
300
 
            echo -n "Repeat passphrase: "
301
 
            read second
 
299
            read -p "Repeat passphrase: " second
302
300
            if tty --quiet; then
303
301
                echo >&2
304
302
                stty echo