Tpm Env

Sunday, May 21, 2017 | 1 minute read | Updated at Sunday, May 21, 2017

@
Tpm Env

tpm使用相关命令

tpm emulator

# init tpm emulator
tpmd deactivated
killall tpmd
tpmd clear
# start tpm emulator
modprobe tpmd_dev
# 如果遇到问题,使用tpmd -f -d clear启动
tpmd -f -d 

一直出现 tpmd.c:310: Debug: waiting for connections… 表示成功了

常见问题对策

  1. module tpmd_dev not found
depmod -a 
  1. failed: address alread in use
rm /var/run/tpm/tpmd_socket:0

trousers

# must start tpm emlator beftor star tcsd
tcsd -e -f

出现TCSD trousers 0.3.13: TCSD up and running.

openCryptoki [optional]

if you want to install tpmtoken_* command, you shoud install it

tpm-tools

tpm_selftest

tpmtoken manual

use tpm_takeownership tpmtoken_init (需要ld /usr/lib/opencryptoki/stdll/libpkcs11_sw.so)

© 2016 - 2025 Caisong's Blog

🌱 Powered by Hugo with theme Dream.

About Me

大龄程序员,喜欢折腾各种环境部署、软件应用。

博客记录日常。