unattended key deletion GnuPG 2.1

HW42 hw42 at ipsumj.de
Fri Jul 31 19:10:47 CEST 2015


Hi,

I try to delete a public and it's secret key via gpgme. The problem is
that it always pops a pinentry confirmation dialog. Since I want do the
action unattended this is a problem.

By looking at the gpg-agent code it seems that there is currently no way
to do this. But maybe I missed something.

There are two possibly workarounds I have think of

1) use a fake pinentry which always says yes.
2) delete the key in private-keys-v1.d

but those are obviously crude hacks.

Thank you.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20150731/db2edf2f/attachment.sig>


More information about the Gnupg-users mailing list