美文网首页
tpm2 模拟器使用步骤(命令行)

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

作者: right_33cb | 来源:发表于2018-10-23 14:53 被阅读0次

    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 模拟器使用步骤(命令行)

          本文链接:https://www.haomeiwen.com/subject/vwvozftx.html