我试图在ubuntu16.04上使用tpm2-工具(我有这个内核版本4.15.0-54-generic)
要安装tpm2-我执行了apt-get install tpm2-tools的工具
我有TPM2.0硬件,我可以在我的机器上看到
$ ls -l /dev/tpm*
crw------- 1 root root 10, 224 Sep 18 08:12 /dev/tpm0
crw------- 1 root root 253, 65536 Sep 18 08:12 /dev/tpmrm0但是,我不能做任何tpm操作
$ tpm2_getrandom -s 20 -o random.out
Resource Mgr, resMgr, failed initialization: 0x1. Exiting...有人能给我指出正确的方向吗?
Tpm2-工具详细信息
$ sudo apt-cache show tpm2-tools
Package: tpm2-tools
Priority: optional
Section: universe/utils
Installed-Size: 964
Maintainer: Ubuntu Developers
Architecture: amd64
Version: 1.0.0+20160226.64b3334-0ubuntu2
Depends: libc6 (>= 2.14), libcurl3 (>= 7.16.2), libssl1.0.0 (>= 1.0.0), libtss2-0, libtss2-utils
Filename: pool/universe/t/tpm2-tools/tpm2-tools_1.0.0+20160226.64b3334-0ubuntu2_amd64.deb
Size: 90006
MD5sum: 2a5dd741bab5ba886508b87559d1151d
SHA1: 65c4f508b8643d808eb28e481dc660a68a0aba3d
SHA256: a8127c59b2ac7520f8f8993e9849f9dcc46486bced2f4b54c7fef56ac8e3b59e
Description-en: TPM 2.0 utilities
This package contains a set of tools to use with TPM 2.0 chips,
for common tasks and features provided by the hardware; such as
for doing basic key management, attestation, encryption and signing.
Description-md5: 7dab290b7414623bbe70b4f8bc047903
Homepage: https://github.com/01org/tpm2.0-tools
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu编辑:
通过运行tpm2-tools设置内核内资源管理器。
export TPM2TOOLS_TCTI="device:/dev/tpmrm0"
也无济于事,也犯了同样的错误
发布于 2019-09-20 16:11:59
这里有一个二进制resourcemgr,没有任何文档可以记录,它是tpm2-tools依赖包(libtss2-utils)的一部分。找到它了这里
在运行tpm2命令之前,我们需要启动resourcemgr服务
systemctl start tpm2-resourcemgr或/usr/sbin/resourcemgr &
https://askubuntu.com/questions/1175086
复制相似问题