intel / ACON

Apache License 2.0
57 stars 18 forks source link

acond/aconcli: Add remote attestation sample code #7

Closed binxing closed 10 months ago

binxing commented 1 year ago

An example is needed to showcase remote attestation flow. The example could be comprised of a trusted server and an untrusted client. The server runs in an ACON container while the client mimics a RRP (Remote Relying Party) that verifies the quote. Below is the proposed workflow of the example.

  1. Start the ACON container containing the server part of the example.
  2. The server starts and listens on some TCP port.
  3. The untrusted client connects to the server requesting a quote.
  4. The server requests a quote via the Unix socket exposed by acond, along with some unique info as the "attestation data".
  5. The server receives the quote in return and responds to the client with the quote.
  6. The client verifies the quote and extracts/displays the ID (in the form of HASH/SIGNER/MANIFEST) of the ACON container and the associated attestation data (set by the server in step 4).

Tasks