automated GPG ?

Ivan Lamouret ivan.lamouret@novitek.fr
Fri Aug 31 17:30:02 2001


Hi,

I need to automate signing messages with gpg (1.0.4). I've read the FAQ
(http://www.gnupg.org/faq.html#q4.13) and followed instructions therein, and
browsed through the mailing list archive but could not find what's not
working. I've also tried with the last gpg version (1.0.6) without more
success.

ok here is what I tried :
followed steps 1 to 4 ok
step 5 from the FAQ:

>gpg --homedir . --edit foo
[...] gpg: Warning: using insecure memory! gpg: ./secring.gpg: keyring created gpg: ./trustdb.gpg: trustdb created gpg: key XXXX595B.59: inserted into trustdb pub 1024D/XXXX595B created: 2001-08-30 expires: never trust: -/q sub 1024g/XXXX01D6 created: 2001-08-30 expires: never sub 1024D/XXXX70E7 created: 2001-08-30 expires: never (1) Foo (foo) <ivan.lamouret@novitek.fr> Command> passwd Need the secret key to do this. I have also tried to gpg --homedir . --allow-secret-key-import --import secring.auto OK now I remove the password OK , now
>gpg --homedir . -sa ../tmp.txt
gpg: Warning: using insecure memory! gpg: secret key parts are not available gpg: no default secret key: general error gpg: signing failed: general error And also tried gpg --homedir . --secret-keyring secring.auto --edit foo I can remove the password but I get the same error (secret parts not available) when trying to sign the document. Any help would be much appreciated. Further questions : on the target machine steps 1 of the FAQ is "Install secring.auto as secret keyring". Can someone explain exactly what's meant by "install"? is that import? is that rename file? are those the same? I've observed that gpg creates all missing .gpg files. Do I need the public keyring also on the target machine? Ivan --------------------