tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/125937-smartcard-bindingsGPGTools: Discussion 2023-06-20T09:18:45Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/561688622022-10-17T17:22:49Z2022-10-17T17:22:52ZSmartcard bindings<div><p>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.</p>
<p>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.</p>
<p>Thanks!</p></div>ltrtag:gpgtools.tenderapp.com,2011-11-04:Comment/561688622022-10-17T18:31:41Z2022-10-17T18:31:44ZSmartcard bindings<div><p>From User EmiiKhaos @ reddit</p>
<p>Run<br>
gpg --list-secret-keys --with-keygrip</p>
<p>to get the keygrip of your smartcard stubs, then delete</p>
<p>~/.gnupg/private-keys-v1.d/.key</p></div>ltr