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

wolfe at riseup.net wolfe at riseup.net
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
%pubring unode.pub
%secring unode.sec
# Do a commit here, so that we can later print "done" :-)
%commit
%echo done
___

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


.... I get the following errors:

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

Ok, so where am I going wrong?

-- 

Wolfe
http://wolfe.blogsite.org




More information about the Gnupg-users mailing list