gpg --no-default-keyring --secret-keyring foo.sec problem

lego lego legoxx@yahoo.com
Thu Mar 7 08:55:02 2002


hello

i'm trying this from the doc/DETAILS

$ cat >foo <<EOF
     %echo Generating a standard key
     Key-Type: DSA
     Key-Length: 1024
     Subkey-Type: ELG-E
     Subkey-Length: 1024
     Name-Real: Joe Tester
     Name-Comment: with stupid passphrase
     Name-Email: joe@foo.bar
     Expire-Date: 0
     Passphrase: abc
     %pubring foo.pub
     %secring foo.sec
     # Do a commit here, so that we can later print
"done" :-)
     %commit
     %echo done
EOF
$ gpg --batch --gen-key -a foo
 [...]
$ gpg --no-default-keyring --secret-keyring foo.sec \
                                  --keyring foo.pub
--list-secret-keys

but instead of this output:
sec  1024D/915A878D 2000-03-09 Joe Tester (with stupid
passphrase) <joe@foo.bar>
ssb  1024g/8F70E2C0 2000-03-09

i just got this:
gpg: Warning: using insecure memory!
gpg: /home/peter/.gnupg/foo.sec: keyring created
gpg: /home/peter/.gnupg/foo.pub: keyring created

i tried to sign files using foo.sec but it won't work
it seems that the keyrings are not even open...

can anyone help me please?

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/