-
Notifications
You must be signed in to change notification settings - Fork 39
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
Configurable Hierarchy #93
Comments
I think that the other hierarchies are supported. The owner hierarchy is the default one, but using the |
Yes, I noted this. But it seems I need an index to specify the parent. And I think i can only get one if I make the object persistent. I am using the NULL hierarchy, so I cannot do that. Can I specify the parent with a TPM2 saved context? |
I see. Could loading an serialized object be a solution for you? https://github.com/tpm2-software/tpm2-openssl/blob/master/docs/keys.md#using-a-serialized-object You would have to generate the key outside, but it may enable you to use the generated key in openssl functions. |
Yes, I saw that too. But it seems the serialized object is just another representation of the persistent handle. So you would be using tpm2_evictcontrol to create a persistent handle but output in another representation of the handle. Let me try TSS PEM file. I would need to first figure how to ASN1 my tpm2 wrapped keys and parent context.... |
I don't think that will work either-- the TSS PEM includes the parent handle only. |
Could you please write down the tpm2 commands you use to generate the key you want to use with openssl? |
Thank you for looking. I just realized the TSS PEM has parent as a handle. My steps:
|
Currently, this won't work with NULL Hierarchy since everything is transient in this hierarchy. |
Understood. I will try to implement loading of the context files, which should enable you working with the NULL hierarchy. This may take some time because I am facing some openssl issues. |
@gotthardp thank you. And please let me know if or what I can help with. |
Alright. I created a branch Please check and let me know if this is what you expect. I need to improve the code a bit, but I will keep that branch in a working state until it gets merged to the master branch. |
thank you, I will give it a try |
TPM2 has several hierarchies. But it seems only Owner hierarchy currently supported. Is it possible to support the other hierarchies?
The text was updated successfully, but these errors were encountered: