Folder name changed from tpm-tools to tpm-util
[aaf/sshsm.git] / tpm-util / INSTALL
1 1.  Download TPM emulator - ibmtpm974.tar.gz
2     a.  cd src/
3     b.  make
4     c.  Run tpm_server binary -  ./tpm_server –rm
5
6 2.  Download TSS version 1.2.0
7     a.  Run following commands
8         i.  ./bootstrap
9         ii. ./configure
10         iii.    If you face any error for pkg-config,
11             1.  export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
12         iv. make && make install
13
14 3.  Download tpm2-abrmd version 1.1.1
15     a.  Run following commands
16         i.  sudo useradd --system --user-group tss
17         ii. cd tpm2-abrmd
18         iii. ./bootstrap
19         iv. ./configure
20         v.  If you face any error for pkg-config,
21             1.  export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
22         vi. make && make install
23         vii.    sudo udevadm control --reload-rules && sudo udevadm trigger
24         viii.   sudo pkill -HUP dbus-daemon
25         ix. systemctl daemon-reload
26     b.  Run tpm2-abrmd as follows - ./tpm2-abrmd -t socket
27     c.  Check in tpm_server whether following debug prints are resulted in console, after resource manager startup
28             Client accepted
29             Client accepted
30
31 4.  Download tpm2-tools version 2.1.0
32     a.  Run the following commands
33     i.  ./bootstrap
34     ii. ./configure
35     iii.    make && make install
36
37 5.  Now configure Initialize TPM, configure with Primary key and then save it in TPM’s NV ram
38     a.  Initialize TPM
39         i.  tpm2_startup -clear -T tabrmd –V
40     b.  Take ownership
41         i.  tpm2_takeownership -o new -e new -l new -T tabrmd –V
42     c.  Create Primary Key
43         i.  tpm2_createprimary -P new -A o -g 0x000B -G 0x0001 -T tabrmd -V -C PrimaryKeyBlob
44     d.  Save primary Key in NV ram
45         i.  tpm2_evictcontrol -A o -c ./PrimaryKeyBlob -S 0x81000011 -T tabrmd -V -P new
46     e.  Check Primary Keys public portion
47         i.  tpm2_readpublic -H 0x81000011 --opu out_primary_public -T tabrmd –V
48     f.  If all the above commands are successful then TPM emulator, TPM resource manager and TPM tools are working fine
49
50 6.  Now compile the TPM duplication tool with "make" command and run it as per instructions. use "./ossl_tpm_util --help" for usage.
51
52 7.  Note: If you restart tpm_server, then you have to restart TPM resource manager too. And the repeat from step 5.
53