Skip to content

Why does tpm2_makecreadential accept the XXD result for the name? #3562

@gwangmu

Description

@gwangmu

This is a light question. The documentation says the --name of tpm2_makecredential is FILE,

-n, --name=FILE:
The name of the key for which certificate is to be created.

but the example below suggests that the actual value fed to --name is the XXD of the name file.

file_size=`ls -l ak.name | awk {'print $5'}`
loaded_key_name=`cat ak.name | xxd -p -c $file_size`
(...)
echo "12345678" | tpm2 makecredential -Q -u ek.pem -s - -n $loaded_key_name -o mkcred.out -G rsa

I think it's taken for granted in any online materials that I stumbled upon. Is there a reason for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions