Skip to content

Persist all required keys and certificates to disk #382

@THS-on

Description

@THS-on

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions