首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Tpm2-在ubuntu 16.04上的工具

Tpm2-在ubuntu 16.04上的工具
EN

Ask Ubuntu用户
提问于 2019-09-18 17:07:23
回答 1查看 2K关注 0票数 1

我试图在ubuntu16.04上使用tpm2-工具(我有这个内核版本4.15.0-54-generic)

要安装tpm2-我执行了apt-get install tpm2-tools的工具

我有TPM2.0硬件,我可以在我的机器上看到

代码语言:javascript
复制
$ 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操作

代码语言:javascript
复制
$ tpm2_getrandom -s 20 -o random.out
Resource Mgr, resMgr, failed initialization: 0x1.  Exiting...

有人能给我指出正确的方向吗?

Tpm2-工具详细信息

代码语言:javascript
复制
$ 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"

也无济于事,也犯了同样的错误

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2019-09-20 16:11:59

这里有一个二进制resourcemgr,没有任何文档可以记录,它是tpm2-tools依赖包(libtss2-utils)的一部分。找到它了这里

在运行tpm2命令之前,我们需要启动resourcemgr服务

systemctl start tpm2-resourcemgr/usr/sbin/resourcemgr &

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1175086

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档