Skip to content

Make it possible to extract measurements from an attested certificate without verifying#10

Open
ameba23 wants to merge 8 commits intopeg/attested-tls-cratefrom
peg/attested-tls-expose-cert-verifier
Open

Make it possible to extract measurements from an attested certificate without verifying#10
ameba23 wants to merge 8 commits intopeg/attested-tls-cratefrom
peg/attested-tls-expose-cert-verifier

Conversation

@ameba23
Copy link
Copy Markdown
Collaborator

@ameba23 ameba23 commented Mar 19, 2026

During an attested-TLS session there are some cases where we would want to know the measurements from the attestation after the attestation has been verified during the initial handshake.

For example, the Buildernet workflow includes measurements from the session in HTTP request and response headers, so that the HTTP client / server has a further opportunity to verify them.

This PR makes it possible to extract the measurements from a certificate without fully verifying it (since the verification should have already taken place.

It does this by publicly exposing the method to extract the attestation from the certificate, and adding a method to get measurements from an attestation without verifying, for both Azure vTPM and DCAP.

Pairs with flashbots/attested-tls-proxy#154

@ameba23 ameba23 changed the base branch from peg/add-attestation-crate to peg/attested-tls-crate March 19, 2026 14:00
…rt-verifier

* peg/attested-tls-crate: (32 commits)
  chore: lint markdown
  chore: prettify
  Buildernet measurements should not be fetched on each test run - use a pre-fetched fixture
  Allow PCR register names to be given as eg. pcr4 in measurements JSON
  Fix DCAP register field names in measurements JSON format, allowing backwards compatibility
  Pin to specificy commit of ra-rls
  Convert test assests to yaml
  Prettify JSON in test assets
  Use fixed commit of dcap-qvl
  Add stable toolchain in CI
  Switch toolchain to stable, but in CI check for nightly fmt and clippy
  Move Azure root certs to separate files and include with include_str!
  Improve normalization for attestation provider URL
  Fix doccomment for clarity
  Change field name for clarity
  Improve check for running on GCP to match GCP documented standard
  Rename variable for clarity
  Typo
  Typo
  Typo
  ...
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 this pull request may close these issues.

1 participant