Skip to content

tpm2_makecredential: Fix usage of name parameter.#3519

Merged
JuergenReppSIT merged 1 commit intotpm2-software:masterfrom
JuergenReppSIT:fix-name-param-makecredential
Oct 30, 2025
Merged

tpm2_makecredential: Fix usage of name parameter.#3519
JuergenReppSIT merged 1 commit intotpm2-software:masterfrom
JuergenReppSIT:fix-name-param-makecredential

Conversation

@JuergenReppSIT
Copy link
Member

The man page for tpm2_makecredential states that the -name parameter can be a file. However, a hex string of the name is expected. Similar to the procedure used with tpm2_certifycreation, a file with the name or a hex string can now be passed.
Fixes: #3274

The secret which will be protected by the key derived from the random seed. It can be specified as a file or passed from stdin.

* **-n**, **\--name**=_FILE_:
* **-n**, **\--name**_FILE\_OR\_HEX_:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add back the equal sign.

The man page for tpm2_makecredential states that the -name parameter
can be a file. However, a hex string of the name is expected. Similar
to the procedure used with tpm2_certifycreation, a file with the name
or a hex string can now be passed.
Fixes: tpm2-software#3274

Signed-off-by: Juergen Repp <juergen_repp@web.de>
@JuergenReppSIT JuergenReppSIT force-pushed the fix-name-param-makecredential branch from 3da556f to f83764d Compare October 29, 2025 19:35
@JuergenReppSIT JuergenReppSIT merged commit 2882f37 into tpm2-software:master Oct 30, 2025
22 checks passed
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

Successfully merging this pull request may close these issues.

tpm2_makecredential: --name is documented to take a FILE but it takes a STRING instead

2 participants