Page MenuHome GnuPG

Add tool to detect and clean unsolicited copies of smartcard keys
Closed, ResolvedPublic

Description

Due to the on-disk generation of encryption keys with a followup transfer to a smartcard, it may happen that a copy of the key still exists in gpg-agent's key store. We need a new command to gpg-card whcih checks the keys of inserted smartcards, prints information and allows to delete unwanted key copies.

Revisions and Commits

Event Timeline

werner created this task.
werner created this object in space Restricted Space.
werner created this object with edit policy "Contributor (Project)".

Example output:

gpg/card> checkkeys
D276000124010304000500009D8A0000 OpenPGP A1E8C48004B6F000B0D0872C35798C94D7F669B5 OPENPGP.1 shadowed
D276000124010304000500009D8A0000 OpenPGP 4EA2A5AF4E19A121FCCCF2BF8FA78141653EBEEE OPENPGP.2 clear
D276000124010304000500009D8A0000 OpenPGP 0CC9BECA94342A8A381ED9BC3BFF3AE110D2BCD3 OPENPGP.3 shadowed
gpg/card> checkkeys --delete-clear-copy
D276000124010304000500009D8A0000 OpenPGP A1E8C48004B6F000B0D0872C35798C94D7F669B5 OPENPGP.1 shadowed
D276000124010304000500009D8A0000 OpenPGP 4EA2A5AF4E19A121FCCCF2BF8FA78141653EBEEE OPENPGP.2 clear
D276000124010304000500009D8A0000 OpenPGP 0CC9BECA94342A8A381ED9BC3BFF3AE110D2BCD3 OPENPGP.3 shadowed
Number of deleted key copies: 1
gpg/card> checkkeys
D276000124010304000500009D8A0000 OpenPGP A1E8C48004B6F000B0D0872C35798C94D7F669B5 OPENPGP.1 shadowed
D276000124010304000500009D8A0000 OpenPGP 4EA2A5AF4E19A121FCCCF2BF8FA78141653EBEEE OPENPGP.2 shadowed
D276000124010304000500009D8A0000 OpenPGP 0CC9BECA94342A8A381ED9BC3BFF3AE110D2BCD3 OPENPGP.3 shadowed
werner changed the task status from Open to Testing.Jan 22 2024, 4:52 PM
werner moved this task from Backlog to QA on the gnupg24 board.
werner shifted this object from the Restricted Space space to the S1 Public space.
werner moved this task from QA to gnupg-2.4.4 on the gnupg24 board.
werner edited projects, added gnupg24 (gnupg-2.4.4); removed gnupg24.