Browse Source

clean TPM memory for use after luks scripts

master
Michael Preisach 5 years ago
parent
commit
8bda7dc030
  1. 1
      update-luks-tpm.sh

1
update-luks-tpm.sh

@ -14,3 +14,4 @@ tpm2_load -C /root/keys/e-primary.context -u /root/keys/obj.pub -r /root/keys/ob
tpm2_evictcontrol -C o -c /root/keys/load.context 0x81000000
# tpm2_unseal -c 0x81000000 -p pcr:sha1:0,1,2,3,4,5,6,7 -o /root/test.bin #proof that the persistence worked
rm -f /root/keys/load.context /root/keys/obj.priv /root/keys/obj.pub /root/keys/pcr-policy.digest
tpm2_flushcontext -t

Loading…
Cancel
Save