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?
This is a light question. The documentation says the
--nameoftpm2_makecredentialisFILE,but the example below suggests that the actual value fed to
--nameis the XXD of the name file.I think it's taken for granted in any online materials that I stumbled upon. Is there a reason for this?