mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +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 \
|
-ix 7 X \
|
||||||
; then
|
; then
|
||||||
shred -n 10 -z -u "$TOTP_SECRET" 2> /dev/null
|
shred -n 10 -z -u "$TOTP_SECRET" 2> /dev/null
|
||||||
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