gpg --batch --no-tty --gen-key

wolfe at wolfe at
Sat Apr 30 10:03:49 CEST 2005

In using these commands within a unix bash script....

cat <<-___ | gpg --batch --no-tty --gen-key
%echo Generating a standard key
Key-Type: DSA
Key-Length: 1024
Subkey-Type: ELG-E
Subkey-Length: 1024
Name-Real: $IDENT
Name-Comment: $CALL
Name-Email: $EMAIL
Expire-Date: 0
Passphrase: $PASSPHRASE
%secring unode.sec
# Do a commit here, so that we can later print "done" :-)
%echo done

gpg --no-tty --export-secret-keys --armor '$EMAIL' > $IDENT.sec.asc
gpg --no-tty --export --armor '$EMAIL' > $

.... I get the following errors:

1: gpg: WARNING: nothing exported
2: gpg --list-keys gets null

Ok, so where am I going wrong?



More information about the Gnupg-users mailing list