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

Writing to an NVRAM slot created with a password fails #3448

Open
Melab opened this issue Jan 6, 2025 · 1 comment
Open

Writing to an NVRAM slot created with a password fails #3448

Melab opened this issue Jan 6, 2025 · 1 comment

Comments

@Melab
Copy link

Melab commented Jan 6, 2025

I am using version 5.2 of these tools, from Ubuntu.

I first did:

tpm2_nvdefine -C o -s 4 -a "authwrite|authread" -p pass 0

Then I tried:

tpm2_nvwrite -C o -P pass -i file.txt 0

I got this error back:

WARNING:esys:src/tss2-esys/api/Esys_NV_Write.c:310:Esys_NV_Write_Finish() Received TPM Error 
ERROR:esys:src/tss2-esys/api/Esys_NV_Write.c:110:Esys_NV_Write() Esys Finish ErrorCode (0x000009a2) 
ERROR: Failed to write NV area at index 0x1000000
ERROR: Tss2_Sys_NV_Write(0x9A2) - tpm:session(1):authorization failure without DA implications
ERROR: Unable to run tpm2_nvwrite

I thought -P is supposed to be the option used to specify the password for an authwrite|authread protected NVRAM slot. Why isn't this working?

@JuergenReppSIT
Copy link
Member

It should work with:
tpm2_nvwrite -P nvpass -i file.txt 0
with -C o pass is used to authenticate the owner hierarchy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants