gpgsm, keygrip

Dirk-Willem van Gulik dirkx at webweaving.org
Sun Jul 30 12:39:34 CEST 2017


Tools such as 

	gpg-preset-passphrase 

require the 40 character keygrip. The manpage of gpg-preset-passphrase(1) suggest that this is best extracted from 

	gpgsm

and that works nicely

 gpgsm --dump-secret-key | grep keygrip:
      keygrip: 1234567890123456789012345678901234567890

however a 'nice to parse' version of that:

	gpgsm --dump-secret-key --with-colons

does not seem to emit the keygrip.

Any way of rectifying that - or another place to get the keygrip in a robust parsable format ?

Dw.




More information about the Gnupg-users mailing list