request: smartcard stub keys with multiple serial numbers
Closed, DuplicatePublic

Description

Hi,
at the current state it seems to be impossible to use the same private (sub)key
on multiple smart cards as the created stub is bound to the serial number of the
smart card.

A workaround for the moment is to delete the according private stub every time I
change smart card or change from smart card to yubi key but this would make a
great feature.

Also, deleting a secret key stub from gnupg using " gpg2 --delete-secret-key"
does NOT remove the stub from gpg-agent - the according file in
~/.gnupg/private-keys-v1.d/ has to be deleted manually.

Should I file a second bug report/feature request for that?

Details

Version
2.0.22
phry set Version to 2.0.22.Dec 29 2014, 4:01 PM
phry added a project: Feature Request.
phry added a subscriber: phry.
werner added a subscriber: werner.Jan 2 2015, 5:33 PM

This won't be fixed for 2.0 but I will consider to do something about it in one
of the next 2.1 releases.

No, you do not need a second bug for --delete-secret-key.

neal added a project: gnupg.Sep 1 2015, 2:18 PM

I'm an active user of multiple smart cards and would like to see key stubs bound to multiple serial numbers at the same time. I took a look at the agent code and could try to prepare a patch that realizes this by allowing a list of serial numbers as a new shadowkeyinfo field. Would this be a welcome addition or would it possibly break things?

gniibe claimed this task.Apr 14 2017, 2:49 AM
gniibe added a subscriber: gniibe.

Thanks for suggestion. I'm sorry that I haven't caught this report. Now, it's assigned to me.
This is merged to T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).

nh2 added a subscriber: nh2.Oct 17 2017, 8:17 PM