tpm2_ptool:如何删除令牌
如果你有要删除的 TPM 令牌,首先使用 tpm2_ptool listtokens --pid 1 命令列出令牌。使用 --pid 选项指定 primary(tpm2_ptool listprimaries,通常为 1)。
tpm2_ptool_list_and_delete.sh
$ tpm2_ptool listtokens --pid 1
- id: 1
label: ssh如果你想删除标签为 ssh 的令牌,首先你真的需要确定要删除此令牌。此操作不可逆,将删除与令牌关联的所有密钥和数据。
remove_token.sh
tpm2_ptool rmtoken --label ssh之后,再次使用 tpm2_ptool listtokens --pid 1 命令验证令牌是否已删除。
tpm2_listtokens_after.sh
$ tpm2_ptool listtokens --pid 1空输出表示未找到令牌。
Check out similar posts by category:
Cryptography
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow