Encrypt file for multiple recipients

Radek Kraus radek_kraus@seznam.cz
Tue Jul 9 15:57:01 2002


Hello,
I have got a problem with encrypting a file for multiple recipients (I =
want to write a script for automatically encryption).

I used gpg in this format
gpg <some options> -r alice@mail -r bob@mail
-------------------------------------------------------------

Situation:
- I have got public key for bob@mail
- I haven't got public key for alice@mail

If I run  'gpg --yes -a -e --always-trust --set-filename test1 -o test1 =
-r alice@mail -r bob@mail test', the result is:
gpg: Warning: using insecure memory!
gpg: alice@mail: skipped: public key not found
gpg: test: encryption failed: public key not found

In this case I want to encrypt a file only for bob@mail, but file is not =
created.

----------------------------------------------------------------

If I run 'gpg --yes -a -e --always-trust --set-filename test1 -o test1 =
-r bob@mail -r alice@mail test', the result is:
gpg: Warning: using insecure memory!
gpg: radek@mail: skipped: public key not found

In this case, a file is encrypted only for bob@mail - it is OK.
----------------------------------------------------------------

Are there some options for it? I cannot find it. Please help me.

Radek Kraus

PS: I used SUSE 8.0, gpg 1.0.6