/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: 2016-10-08 04:11:22 UTC
  • Revision ID: teddy@recompile.se-20161008041122-xdqj4sw9h9i461fu
Fix bug when generating keys in a chroot environment.

* mandos-keygen (keygen): Use "%no-protection" statement in GnuPG
                          batch parameter file to make GnuPG 2.1 not
                          try to ask for a passphrase interactively.

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.7.13"
 
24
VERSION="1.7.12"
25
25
 
26
26
KEYDIR="/etc/keys/mandos"
27
27
KEYTYPE=RSA
325
325
            cat "$PASSFILE"
326
326
        else
327
327
            tty --quiet && stty -echo
328
 
            echo -n "Enter passphrase: " >/dev/tty
 
328
            echo -n "Enter passphrase: " >&2
329
329
            read first
330
330
            tty --quiet && echo >&2
331
 
            echo -n "Repeat passphrase: " >/dev/tty
 
331
            echo -n "Repeat passphrase: " >&2
332
332
            read second
333
333
            if tty --quiet; then
334
334
                echo >&2