我有一个子密钥被移到卡片上。这导致用本地钥匙串中的存根替换它。这意味着每次我尝试使用该子项时,我得到:
gpg: public key decryption failed: Card error
gpg: decryption failed: No secret key
我想现在从备份中恢复密钥。我怎样才能做到这一点?
我试过gpg --edit-key ...
,然后key n, toggle, delkey
,但是当我试图再次导入密钥,我仍然得到密钥不变:
gpg: Total number processed: 3
gpg: new subkeys: 1
gpg: new signatures: 1
gpg: secret keys read: 3
gpg: secret keys unchanged: 1
如何更换本地存根?
gpg --delete-secret-and-public-keys ...
结果gpg: deleting secret subkey failed: Not possible with a card based key
- 这正是原因我想删除它。