gpg in batch mode - help
I am trying to encrypt a file with gpg in batch mode and can't make it work. In interactive mode evrything is great. I run this (I replaced original user-id and file):
gpg -r <user-id> --encrypt <file>
I get this message below and I answer yes and it's working
gpg: E65A726B: There is no indication that this key really belongs to the owner
2048g/E65A726B 2004-06-02 "<user-id>"
Fingerprint: 2B33 64AC D62E 9B37 2B88 7F8D AD4B C226 E65A 726B
It is NOT certain that the key belongs to its owner.
If you *really* know what you are doing, you may answer
the next question with yes
Use this key anyway?
In batch mode:
Here is the command I am using and the message:
gpg --batch -r <user-id> --encrypt <file>
and I get:
gpg: E65A726B: There is no indication that this key really belongs to the owner
gpg: no valid addressees
gpg: <file>: encryption failed: no such user id
I really appreciate any help.
Thak you
|