Encrypt in Batch Mode with Key ID

jane grove grove.jane at gmail.com
Mon May 14 19:51:21 CEST 2007


I tried to use the command:

gpg --batch -ea -r keyid filename

to encrypt a file in batch mode with a recipient public key ID. I got
an "encryption failed: unusable public key" error message.

Interestingly, when I use the command without batch mode like "gpg -ea
-r keyid filename", I'm able to encrypt the file.  So the batch mode
is having problems.

How can I encrypt the file using recipient public keyid correctly in
batch mode?


More information about the Gnupg-users mailing list