When following instructions on how to import a GPG key to a TPM, I get the following error: gpg: error from TPM: Card error
.
$ gpg --edit-key <key ID>
gpg (GnuPG) 2.4.5; Copyright (C) 2024 g10 Code GmbH
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Secret key is available.
<key info>
gpg> keytotpm
Really move the primary key? (y/N) y
gpg: error from TPM: Card error