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

Support using AK from NV #334

Open
salrashid123 opened this issue Jun 19, 2023 · 0 comments
Open

Support using AK from NV #334

salrashid123 opened this issue Jun 19, 2023 · 0 comments

Comments

@salrashid123
Copy link

GCE VM's encodes a signing key directly at index

const GceAKTemplateNVIndexRSA uint32 = 0x01c10001 // 29425665
const GceAKCertNVIndexRSA uint32 = 0x01c10000 // 29425664

which a customer can recall the final key itself through get-shielded-identity

go-attestation should support loading and using this key directly if the nvindex is specified in AK key acqusition or initialization

eg load and use a key from template here

data, err := tpm2.NVReadEx(t.rwc, tpmutil.Handle(client.GceAKTemplateNVIndexRSA), tpm2.HandleOwner, "", 0)
template, err := tpm2.DecodePublic(data)

// use template to acquire AK and use that

ref handles used on gcp

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

1 participant