Smartcard bindings

ltr's Avatar

ltr

17 Oct, 2022 05:22 PM

Does anybody know how to remove the smartcard binding created when you import a key? For example, you import a public key using the fetch command in --card-edit this, if this is the first time you do this it will associate your smart card number ("card-no") to the imported key but if you delete this key and use a different smartcard to import the same key you just deleted it will still show the card number of the card you first used.

I'm aware that having the same subkeys in multiples smartcards is not supported by gnupg but is there any way to update this card number association? What can I do to remove the card association when deleting a key? Deleting the whole .gnupg folder works but that's obviously not a proper solution.

Thanks!

  1. 1 Posted by ltr on 17 Oct, 2022 06:31 PM

    ltr's Avatar

    From User EmiiKhaos @ reddit

    Run
    gpg --list-secret-keys --with-keygrip

    to get the keygrip of your smartcard stubs, then delete

    ~/.gnupg/private-keys-v1.d/.key

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac