/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 01:49:18 UTC
  • Revision ID: teddy@recompile.se-20131013014918-08ybiy64qxy4ceza
* initramfs-tools-hook: Bug fix: Make sure the right version of GnuPG
                        is copied into the initramfs image.  Always
                        assume that GPGME is used to avoid searching
                        for it since the path might not be /usr/lib.
                        Thanks to Félix Sipma <felix+debian@gueux.org>
                        for the initial bug report, and also thanks to
                        Dick Middleton <dick@lingbrae.com> for some
                        more debugging.
* initramfs-unpack: New script to help with development and debugging.
                    It is only part of the source tree, it is not
                    installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
# Contact the authors at <mandos@recompile.se>.
22
22
23
23
 
24
 
VERSION="1.5.5"
 
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