Calculating name of created AK- server side
kuba.michal.n at gmail.com
Hello!
I would like to know if it is possible to calculate name of AK generated by host on a remote server? I have read about remote attestation. To ensure the AK matches EK we have to make credential using name of the AK. To achieve this we have to either:
a) calculate name of the AK on server
b) receive name of the AK from host and believe it's a name for a proper AK
Am I missing something?
I have searched for explanation in docs posted on TCG's site, but I just can't find anything useful for nameAlg.
I would be thankful for any help or advice :D
Imran Desai
Hello kuba, welcome to the community.
Have you looked at this tutorial https://tpm2-software.github.io/2020/06/12/Remote-Attestation-With-tpm2-tools.html
Hopefully it should answer some of your questions.
kuba.michal.n at gmail.com
Hello Imran! Thank You for your response
I have read this tutorial before writing my question. It's just amazing :D My question relates to this command:
tpm2_makecredential \
--tcti none \
--encryption-key rsa_ek.pub \
--secret file_input.data \
--name $loaded_key_name \ # this line :)
--credential-blob cred.out
Anonymity is not our concern. We want to ensure that only those computers which were handed by us to our employees can access internal resources. My idea was to generate EK and AK just like in tutorial, and then send EK certificate and public part of AK to some auth server. Then server would calculate the name and make use of tpm2_makecredential.
I have probably overlooked something really important.
Thank you in advance :D
Imran Desai
I see. A quick explainer :)
So AKname is not a secret. Neither is it possible to fake one. And so can be handed from the client to the server anytime. (tpm2_readpublic -c ak.ctx -n ak.name)
The credential challenge posed by the server (makecredential) wraps and encrypts a plaintext-credential using the EKpublic and AKname.
Only a client with access to the respective sensitive(private) portions of the EK and AK will have to load the keys on the TPM and it is then able to unwrap/decrypt the credentialBlob with credential-activation.
kuba.michal.n at gmail.com
Thank You for clear explanation :D
hoadao3493 at gmail.com
Thank you for sharing this great article. https://km888b.net hopes you will have many more articles for everyone to read.
hoadao3493 at gmail.com
Thank you for sharing this great article. https://km888b.net hopes you will have many more articles for everyone to read.
painololo at protonmail.com
good
painololo at protonmail.com
good