/mandos/release

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

« back to all changes in this revision

Viewing changes to mandos-keygen

  • Committer: Teddy Hogeborn
  • Date: 2013-10-13 15:43:42 UTC
  • mto: (237.7.272 trunk)
  • mto: This revision was merged to the branch mainline in revision 303.
  • Revision ID: teddy@recompile.se-20131013154342-2ztabynqog6xuk0t
* initramfs-unpack: Bug fix: Made executable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
3
3
# Mandos key generator - create a new OpenPGP key for a Mandos client
4
4
5
 
# Copyright © 2008-2013 Teddy Hogeborn
6
 
# Copyright © 2008-2013 Björn Påhlsson
 
5
# Copyright © 2008-2012 Teddy Hogeborn
 
6
# Copyright © 2008-2012 Björn Påhlsson
7
7
8
8
# This program is free software: you can redistribute it and/or modify
9
9
# it under the terms of the GNU General Public License as published by
21
21
# Contact the authors at <mandos@recompile.se>.
22
22
23
23
 
24
 
VERSION="1.6.1"
 
24
VERSION="1.6.0"
25
25
 
26
26
KEYDIR="/etc/keys/mandos"
27
27
KEYTYPE=RSA
64
64
  -l BITS, --length BITS
65
65
                        Key length in bits.  Default is 4096.
66
66
  -s TYPE, --subtype TYPE
67
 
                        Subkey type.  Default is RSA.
 
67
                        Subkey type.  Default is ELG-E.
68
68
  -L BITS, --sublength BITS
69
69
                        Subkey length in bits.  Default is 4096.
70
70
  -n NAME, --name NAME  Name of key.  Default is the FQDN.
204
204
    cat >"$BATCHFILE" <<-EOF
205
205
        Key-Type: $KEYTYPE
206
206
        Key-Length: $KEYLENGTH
207
 
        Key-Usage: sign,auth
 
207
        #Key-Usage: encrypt,sign,auth
208
208
        Subkey-Type: $SUBKEYTYPE
209
209
        Subkey-Length: $SUBKEYLENGTH
210
 
        Subkey-Usage: encrypt
 
210
        #Subkey-Usage: encrypt,sign,auth
211
211
        Name-Real: $KEYNAME
212
212
        $KEYCOMMENTLINE
213
213
        $KEYEMAILLINE
294
294
            cat "$PASSFILE"
295
295
        else
296
296
            tty --quiet && stty -echo
297
 
            echo -n "Enter passphrase: " >&2
 
297
            echo -n "Enter passphrase: "
298
298
            read first
299
299
            tty --quiet && echo >&2
300
 
            echo -n "Repeat passphrase: " >&2
 
300
            echo -n "Repeat passphrase: "
301
301
            read second
302
302
            if tty --quiet; then
303
303
                echo >&2