mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-30 01:38:56 +00:00
shred TOTP_SECRET also when generation is successful
This commit is contained in:
parent
8310a3d62e
commit
2740317d67
@ -47,6 +47,8 @@ if ! tpm sealfile2 \
|
|||||||
die "Unable to seal secret"
|
die "Unable to seal secret"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
shred -n 10 -z -u "$TOTP_SECRET" 2> /dev/null
|
||||||
|
|
||||||
|
|
||||||
# to create an nvram space we need the TPM owner password
|
# to create an nvram space we need the TPM owner password
|
||||||
# and the TPM physical presence must be asserted.
|
# and the TPM physical presence must be asserted.
|
||||||
|
Loading…
Reference in New Issue
Block a user