"--refresh-keys" not working.

2019-12-18 Thread Gerard E. Seibert
Operating System: FreeBSD 11.3 KDE Plasma Version: 5.17.4 KDE Frameworks Version: 5.64.0 Qt Version: 5.13.2 Kernel Version: 11.3-RELEASE-p5 OS Type: 64-bit Processors: 4 × ACPI CPU Memory: 31.7 GiB of RAM gpg2 --version gpg (GnuPG) 2.2.19 libgcrypt 1.8.5 I have just done a fresh installation.

Re: Best way to get fingerprint programatically

2019-12-18 Thread Eric F via Gnupg-users
On 12/18/19 10:56 , Andrew Gallagher wrote: > On 18/12/2019 09:32, Werner Koch via Gnupg-users wrote: >> The -F:: is an interesting hack but Andrew's or my variant works >> with all AWK implementations: >> >>awk -F: '$1=="fpr" {print $10}' | head -1 > Aha, I forgot about handling

Re: Usability of OpenSSL vs GNUPG

2019-12-18 Thread halfdog
Robert J. Hansen writes: > > Having such experiences more than once reduced trust and sympathy > > for GnuPG, thus also willingness to contribute to testing or > > development. But maybe just my expectations of GnuPG as open > > source software are wrong and my limited communication skills > > do

Re: Best way to get fingerprint programatically

2019-12-18 Thread john doe
On 12/18/2019 10:56 AM, Andrew Gallagher wrote: > On 18/12/2019 09:32, Werner Koch via Gnupg-users wrote: >> The -F:: is an interesting hack but Andrew's or my variant works >> with all AWK implementations: >> >>awk -F: '$1=="fpr" {print $10}' | head -1 > > Aha, I forgot about handling

Re: Best way to get fingerprint programatically

2019-12-18 Thread Andrew Gallagher
On 18/12/2019 09:32, Werner Koch via Gnupg-users wrote: > The -F:: is an interesting hack but Andrew's or my variant works > with all AWK implementations: > >awk -F: '$1=="fpr" {print $10}' | head -1 Aha, I forgot about handling multiple results. Note that you don't need head if you're

Re: inline gpg password-prompt ??

2019-12-18 Thread oxy via Gnupg-users
> export GPG_TTY="$(tty)" great! Thx.. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users

Re: Best way to get fingerprint programatically

2019-12-18 Thread Werner Koch via Gnupg-users
On Wed, 18 Dec 2019 08:19, john doe said: > In other words, why '--quick-set-expire' requires a fingerprint and does > not accept a . Only the fingerprint is a unique identifier for the keyblock (aka certificate, public key). Allowing a User-id would require extra code in gpg and by the caller

Re: Best way to get fingerprint programatically

2019-12-18 Thread Andrew Gallagher
On 18/12/2019 07:19, john doe wrote: > $ 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? Your awk looks awkward to me. What about this

Best way to get fingerprint programatically

2019-12-18 Thread john doe
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