On Oct 31, 6:46 pm, Martin <
mugui...@gmail.com> wrote:
> Unusable public key
> [gnupg] [GNUPG:] INV_RECP 0 77356D2E2F4751C29E8B966E2827360F7441CD74
> [gnupg] gpg: [stdin]: encryption failed: Unusable public key
> [gnupg] encrypt result: ''
>
> How can I programmatically trust a key? Is that the problem?
It might be - unfortunately GnuPG doesn't say, the "0" after INV_RECP
is unhelpfully "No specific reason given". At the moment you can't set
the trust programmatically on a key using python-gnupg because it's an
interactive edit-key operation, but you should be able to subclass the
GPG class and add an "--always-trust" argument to the args sent to
gpg.
Regards,
Vinay Sajip