only first key good when using -batch keygen

marc marc@zounds.net
Fri, 19 Jan 2001 11:09:41 -0600 (CST)


I am tryign to create 90 keypairs, so I am trying to use the batch option
to create the keys.  I made a file to do this (see below for file), and
use the command:

gpg --batch --gen-key -a keygen.conf

but when i try to import the resulting keys, only the first one
works.  the others give me an error:

 gpg --import --secret-keyring ./test_ring --no-default-keyring
--allow-secret-key-import two.sec
gpg: Warning: using insecure memory!
gpg: ./test_ring: keyring created
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

gpg --import --secret-keyring ./test_ring --no-default-keyring
--allow-secret-key-import one.sec
gpg: Warning: using insecure memory!
gpg: key C93A89E6: secret key imported
gpg: Total number processed: 1
gpg:       secret keys read: 1
gpg:   secret keys imported: 1

i realize the --batch is beta.  is it broken?  should i just write a shell
script to create all the keys for me?

pls cc: me on any relpies, i have not joined the mailing list.

thank you,

marc

$cat keygen.conf
%echo Generating a key
Key-Type: DSA
Key-Length: 2048
Subkey-Type: ELG-E
Subkey-Length: 2048
Name-Real: one
Name-Comment: a test one
Name-Email: one@one.com
Expire-Date: 3y
Passphrase: hahaha
%pubring one.pub
%secring one.sec
%commit
%echo done.

%echo Generating a key
Key-Type: DSA
Key-Length: 2048
Subkey-Type: ELG-E
Subkey-Length: 2048
Name-Real: two
Name-Comment: a test two
Name-Email: two@two.com
Expire-Date: 3y
Passphrase: hahaha
%pubring two.pub
%secring two.sec
%commit
%echo done.

%echo Generating a key
Key-Type: DSA
Key-Length: 2048
Subkey-Type: ELG-E
Subkey-Length: 2048
Name-Real: three
Name-Comment: a test thr
Name-Email: three@three.com
Expire-Date: 3y
Passphrase: hahaha
%pubring thr.pub
%secring thr.sec
%commit
%echo done.


-- 
Archive is at http://lists.gnupg.org - Unsubscribe by sending mail
with a subject of  "unsubscribe"  to gnupg-users-request@gnupg.org