Best way to get fingerprint programatically

john doe johndoe65534 at mail.com
Wed Dec 18 08:19:59 CET 2019


Hi,

I'm using the following command to get the fingerprint to quickly change
the expiration date on a key.

$ gpg --quick-set-expire $(gpg --with-colons -k test | awk -F:::::::::
'NR==3{print substr($2,1,length($2)-1)}') 1d


I'm just wondering if there isn't a better, programatically, way to go
about it?

In other words, why '--quick-set-expire' requires a fingerprint and does
not accept a <USER-ID>.


Any input is welcome.

--
John Doe



More information about the Gnupg-users mailing list