Smartcard bindings

ltr's Avatar


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.


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

    ltr's Avatar

    From User EmiiKhaos @ reddit

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

    to get the keygrip of your smartcard stubs, then delete


  2. Steve closed this discussion on 20 Jun, 2023 09:18 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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