gpg: used key is not marked for encryption use.

Jonathan Kaczynski jonathan.kaczynski at guildeducation.com
Sat Jul 24 02:00:07 CEST 2021


Hi,

I'm trying to understand the scenario in which we see the log message,
"gpg: used key is not marked for encryption use." I haven't been able to
find any mentions of the phrase on the web, so I turned to the source code.

Looking at
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=g10/pubkey-enc.c;h=6e1b0898e4b3687ef4d57ae1a6270782723b01e3;hb=refs/heads/master#l146
it is a little difficult to tease out.

The context is I'm trying to debug why another party's encrypted file is
producing this extra log message by gpg-2.3.1, and if it matters. They used
a tool which uses the BouncyCastle java library.

Would someone be able to help me with this?

Thank you,
Jonathan Kaczynski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20210723/9de6eb9e/attachment-0001.html>


More information about the Gnupg-users mailing list