Index: gnupg2-2.1.10/g10/getkey.c =================================================================== --- gnupg2-2.1.10/g10/getkey.c +++ gnupg2-2.1.10/g10/getkey.c @@ -2614,6 +2614,13 @@ continue; } + if ((req_usage & PUBKEY_USAGE_SIG) && agent_probe_secret_key (NULL, pk)) + { + if (DBG_LOOKUP) + log_debug ("\tno secret key for signing\n"); + continue; + } + if (DBG_LOOKUP) log_debug ("\tsubkey might be fine\n"); /* In case a key has a timestamp of 0 set, we make sure