/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: Teddy Hogeborn
  • Date: 2013-10-13 16:57:10 UTC
  • mfrom: (624 trunk)
  • mto: This revision was merged to the branch mainline in revision 625.
  • Revision ID: teddy@recompile.se-20131013165710-y695wckw4jmujvma
MergeĀ fromĀ trunk.

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=DSA
28
 
KEYLENGTH=2048
29
 
SUBKEYTYPE=ELG-E
30
 
SUBKEYLENGTH=2048
 
27
KEYTYPE=RSA
 
28
KEYLENGTH=4096
 
29
SUBKEYTYPE=RSA
 
30
SUBKEYLENGTH=4096
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 DSA.
 
63
  -t TYPE, --type TYPE  Key type.  Default is RSA.
64
64
  -l BITS, --length BITS
65
 
                        Key length in bits.  Default is 2048.
 
65
                        Key length in bits.  Default is 4096.
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 2048.
 
69
                        Subkey length in bits.  Default is 4096.
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
 
            read -p "Enter passphrase: " first
 
297
            echo -n "Enter passphrase: "
 
298
            read first
298
299
            tty --quiet && echo >&2
299
 
            read -p "Repeat passphrase: " second
 
300
            echo -n "Repeat passphrase: "
 
301
            read second
300
302
            if tty --quiet; then
301
303
                echo >&2
302
304
                stty echo