-
Notifications
You must be signed in to change notification settings - Fork 143
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
Feature request: output EK during swtpm_setup #455
Comments
You can have the output written into a log file and then grep for the EK keys. But it's also possible to grep for the EK keys like so:
So it's not like this cannot be done today. What you get is the modulus only and the x and y coordinates and type of curve for an EC key. |
@osresearch I now opened PR #466 . Please check it out and give it run.
I also want to point out at this point that I won't always react to 'feature requests' but do expect others to contribute to swtpm as well. |
@osresearch Did you give it a try? |
So my PR is ready to be merged and I think it does what it is supposed to do. However, I want to point out that there's a reason why swtpm_setup has the configuration script that configure it to call swtpm-localca. The reason for this is that there could be a remote/centralized CA for which swtpm_setup could invoke the client tool. The client would talk to that centralized CA which could keep track of all the platform and EK certs it ever issued. |
Describe the bug
Extracting the EK from a new swtpm environment is complex and error prone.
To Reproduce
Steps to reproduce the behavior:
swtpm
to serve from this stateswtpm
isn't ready to serve immediatelytpm2-tools
to read the EK public structure:swtpm
process and clean up temp filesswtpm
(and--daemon
doesn't seem to work? the process exits immediately)Expected behavior
swtpm_setup --display
would print the EK public structure or have an option to write it somewhere. This is to allow an out-of-band delivery of the EK to an attestation server for virtual machines, similar to how GCP vTPM works.Desktop (please complete the following information):
Versions of relevant components
The text was updated successfully, but these errors were encountered: