diff options
Diffstat (limited to 'g10/getkey.c')
-rw-r--r-- | g10/getkey.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/getkey.c b/g10/getkey.c index ad5dd8e01..cc908964e 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -1860,7 +1860,8 @@ parse_def_secret_key (ctrl_t ctrl) PKT_public_key *pk = node->pkt->pkt.public_key; /* Check that the key has the signing capability. */ - if (! (pk->pubkey_usage & PUBKEY_USAGE_SIG)) + if (! (pk->pubkey_usage & PUBKEY_USAGE_SIG) + && ! (pk->pubkey_usage & PUBKEY_USAGE_CERT)) continue; /* Check if the key is valid. */ |