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

Persist all required keys and certificates to disk #382

Closed
3 tasks
THS-on opened this issue May 20, 2022 · 0 comments · Fixed by #391
Closed
3 tasks

Persist all required keys and certificates to disk #382

THS-on opened this issue May 20, 2022 · 0 comments · Fixed by #391

Comments

@THS-on
Copy link
Member

THS-on commented May 20, 2022

The agent currently only persists the TpmsContext of the AK to disk and not the NK and mTLS certificate.
This means that restarting the agent (not the whole system) mid attestation will cause an unnecessary failure.

The following things are required to fix this:

  • Persisting the NK private and public key to disk instead of generating a new one at every startup
  • Persisting the mTLS certificate to disk
  • (Persisting the AK Private and Public to disk instead of TpmsContext because the context not loadable after a reboot. There is no reason why we need a fresh AK every time.)
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

Successfully merging a pull request may close this issue.

1 participant