Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify that two pubkeys must be used #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion provision/tpm-policy.passwd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ trap '(rm -rf $tdir)' EXIT
#
# nvindex for the TPM administrative password

# NOTE: this policy file must be signed afterwards
# NOTE: this policy file must be signed afterwards using the
# password-policy signing pubkey
pol_passwd="./tpm_passwd.policy"

notice "creating TPM_NV_PASSWD policy"
Expand Down
3 changes: 2 additions & 1 deletion provision/tpm-policy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ trap '(rm -rf $tdir)' EXIT
#
# nvindex for the secret

# NOTE: this policy file must be signed afterwards
# NOTE: this policy file must be signed afterwards using the
# secret-policy signing pubkey
pol_secret="./tpm_secret.policy"

notice "creating TPM_NV_SECRET policy"
Expand Down
2 changes: 1 addition & 1 deletion read/tpm-read-passwd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ trap '(rm -rf $tdir)' EXIT
#
# load the public signing key into the tpm

notice "loading tpm ea policy public key"
notice "loading password-reading tpm ea policy public key"
tpm2_loadexternal -C o -G $TPM_POL_PUBKEY_ALG -u $pubkey_file \
-c $tdir/pubkey_ctx_a -n $tdir/pubkey_name_a
error_check $? "unable to load the public signing key($pubkey_file)"
Expand Down
2 changes: 1 addition & 1 deletion read/tpm-read-secret.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ trap '(rm -rf $tdir)' EXIT
#
# load the public signing key into the tpm

notice "loading tpm ea policy public key"
notice "loading secret-reading tpm ea policy public key"
tpm2_loadexternal -C o -G $TPM_POL_PUBKEY_ALG -u $pubkey_file \
-c $tdir/pubkey_ctx_a -n $tdir/pubkey_name_a
error_check $? "unable to load the public signing key($pubkey_file)"
Expand Down