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