tpm2 模拟器使用步骤(命令行)

1、启动tpm2服务器

root@ubuntu:~# tpm_server &

[1] 1585

root@ubuntu:~# TPM command server listening on port 2321

Platform server listening on port 2322


2、同一窗口,初始化启动tpm2模拟器

root@ubuntu:~# tpm2_startup -T mssim -c

Command IPv4 client accepted

Platform IPv4 client accepted

read() error.  Error is 0 Success

Platform server listening on port 2322

read() error.  Error is 2 No such file or directory

TPM command server listening on port 2321

root@ubuntu:~#


3、同一窗口,执行tmp2_tool中的命令,带'-T mssim'

如:

root@ubuntu:~# tpm2_getrandom -T mssim 4

Command IPv4 client accepted

Platform IPv4 client accepted

0x5D 0x45 0x03 0xE2

read() error.  Error is 0 Success

Platform server listening on port 2322

read() error.  Error is 2 No such file or directory

TPM command server listening on port 2321


4、新窗口执行命令:


tpm2 模拟器使用步骤(命令行)_第1张图片

你可能感兴趣的:(tpm2 模拟器使用步骤(命令行))