(pre)cache password rather than use allow-loopback-pinentry

Werner Koch wk at gnupg.org
Tue Aug 8 13:56:52 CEST 2017


On Sat, 29 Jul 2017 20:24, dirkx at webweaving.org said:

> Lovely. Is there any way one can suppress the fingerprint of the primary key (as when doing line oriented things; bith the ’sec’ and ’ssb’ line are followed by structurally identical ‘fpr’ lines)?

No.  You should use a simple state machine to process them: if you want
to get the fingerprints of the subkey, wait for "sub" or "ssb" and catch
the fpr or grp lines until you see another "sub" or "ssb" line.
Something like this:

    awk -F: '$1 == "pub" || $1=="sec" {subseen=0; next}
      $1=="sub" || $1=="ssb" {subseen=1; next}
      $1=="fpr" && subseen {print $10}'


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: </pipermail/attachments/20170808/d4227e8f/attachment-0001.sig>


More information about the Gnupg-users mailing list