Exporting secret keys with gpg 2.1
Patrick Brunschwig
patrick at enigmail.net
Sun Nov 8 20:04:32 CET 2015
If you export secret keys with
gpg2 --batch --no-tty --status-fd 2 --export-secret-keys ...
then pinentry will ask for each and every key to export. That's OK,
however, gpg does not report to the status-fd if the passphrase was OK
or not. In other words, it's not possible for tools to know if a key was
really exported or not, unless you want to parse the packets in the
resulting file.
Would it be possible to add something like:
[GNUPG:] SECRET_KEY_EXPORTED KEYID
[GNUPG:] EXPORT_SECRET_KEY_FAILED KEYID
Thanks,
Patrick
More information about the Gnupg-devel
mailing list