Secret key export difference in 1.4 and 2.1

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Oct 26 15:15:51 CEST 2016


On Wed 2016-10-26 05:42:41 -0400, Neal H. Walfield wrote:
> Using --list-packets is okay for debugging, but the interface is not
> guaranteed to be stable.  Instead, you are better off doing something
> like:
>
>   gpg --status-fd 1 --import exported-key.asc | grep 'IMPORT_OK [0-9]* FINGERPRINT'

If you're doing this with a secret key and you don't want to trigger
more passphrase prompts, you probably also want to use --batch and
--no-tty for the --import part of this pipeline.

         --dkg



More information about the Gnupg-devel mailing list