Re: Unhelpful error message while attempting to generate key pair
Hello, Werner, Thanks for such a fast and helpful answer to my post. But I'd like to apologise for the tone of my first post, which came out rather rude, something I hadn't intended. On Thu, Sep 14, 2023 at 15:53:48 +0200, Werner Koch wrote: > On Wed, 13 Sep 2023 20:48, Alan Mackenzie said: > > I type > > $ gpg --gen-key > Use >gpg -v --gen-key > to see more warning. I did that. It came out saying something about gnome3. ;-( > > agent_genkey failed: Timeout > Look like a problem with your pinentry. Did it show up on another > screen? The "-v" should tell you which pinentry was invoked; share that > with us for help. Yes, it was my pinentry, which had been set up to use gnome3. I was calling gpg on a Linux tty. As soon as I amended the setup to use pinentry-curses (Gentoo has a utility to do this), --gen-key worked. > Next debug level would be > gpg -v --debug ipc --gen-key > but I don't think you need this. Indeed not. I now have a 3072-bit key pair, valid for two years. Thanks again! > Salam-Shalom, >Werner -- Alan Mackenzie (Nuremberg, Germany). ___ Gnupg-users mailing list Gnupg-users@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-users
[PATCH gnupg] gpg: Add --list-filter properties sig_expires/sig_expires_d
From: "Robin H. Johnson" Modelled after key_expires/key_expires_d. This should be useful to detect upcoming certification expiry, so the certifications can be renewed in advance of the expiry. Signed-off-by: Robin H. Johnson --- doc/gpg.texi | 6 ++ g10/import.c | 14 ++ 2 files changed, 20 insertions(+) diff --git a/doc/gpg.texi b/doc/gpg.texi index 15b3243d0..6ba944edb 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -2715,6 +2715,12 @@ The available properties are: second is the same but given as an ISO date string, e.g. "2016-08-17". (drop-sig) + @item sig_expires + @itemx sig_expires_d + The expiration time of a signature packet or 0 if it does not + expire. The second is the same but given as an ISO date string or + an empty string e.g. "2038-01-19". + @item sig_algo A number with the public key algorithm of a signature packet. (drop-sig) diff --git a/g10/import.c b/g10/import.c index d84a083cc..c1e76c3f0 100644 --- a/g10/import.c +++ b/g10/import.c @@ -1509,6 +1509,20 @@ impex_filter_getval (void *cookie, const char *propname) { result = dateonlystr_from_sig (sig); } + else if (!strcmp (propname, "sig_expires")) +{ + snprintf (numbuf, sizeof numbuf, "%lu", (ulong)sig->expiredate); + result = numbuf; +} + else if (!strcmp (propname, "sig_expires_d")) +{ + static char exdatestr[MK_DATESTR_SIZE]; + + if (sig->expiredate) +result = mk_datestr (exdatestr, sizeof exdatestr, sig->expiredate); + else +result = ""; +} else if (!strcmp (propname, "sig_algo")) { snprintf (numbuf, sizeof numbuf, "%d", sig->pubkey_algo); -- 2.42.0 ___ Gnupg-users mailing list Gnupg-users@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Unhelpful error message while attempting to generate key pair
On Wed, 13 Sep 2023 20:48, Alan Mackenzie said: > I type > > $ gpg --gen-key Use gpg -v --gen-key to see more warning. > agent_genkey failed: Timeout Look like a problem with your pinentry. Did it show up on another screen? The "-v" should tell you which pinentry was invoked; share that with us for help. Next debug level would be gpg -v --debug ipc --gen-key but I don't think you need this. Salam-Shalom, Werner -- The pioneers of a warless world are the youth that refuse military service. - A. Einstein openpgp-digital-signature.asc Description: PGP signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-users
Unhelpful error message while attempting to generate key pair
Hello, gpg. I'm trying to use gpg-2.2.41 on an up to date Gentoo GNU/Linux system. I type $ gpg --gen-key , answer the questions about my name and email address, then wait ..., and wait, ... and wait. Finally a half error message appears: agent_genkey failed: Timeout , followed by a repetition looking like: Key generation failed: Timeout .. This is an exceptionally unhelpful error message: it doesn't tell me _what_ has timed out, thus giving me no clue as to what I need to fix. Have I got something not configured right? Am I missing some library? If I need to read the fine manual, _which_ manual, and _which_ part of it? Help! Please help me get my gnupg working! Thanks! -- Alan Mackenzie (Nuremberg, Germany). ___ Gnupg-users mailing list Gnupg-users@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-users