Skip to content

Commit

Permalink
Add documentation about certificate revocation
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Jan 11, 2025
1 parent 7879d9b commit d08e7ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Note it costs around 63m gas to validate an attestation with no prior verified c
You can break this up into smaller transactions by verifying each cert in the chain separately.
You can call `CertManager.verifyCert` for each cert in the attestation `cabundle`.

This library does not currently support certificate revocation, which is disabled in AWS's attestation verification documentation
[here](https://github.com/aws/aws-nitro-enclaves-nsm-api/blob/4b851f3006c6fa98f23dcffb2cba03b39de9b8af/docs/attestation_process.md#32-syntactical-validation).

## Usage

1. Deploy the `CertManager` separately.
Expand Down
3 changes: 3 additions & 0 deletions src/CertManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import {ICertManager} from "./ICertManager.sol";

// adapted from https://github.com/marlinprotocol/NitroProver/blob/f1d368d1f172ad3a55cd2aaaa98ad6a6e7dcde9d/src/CertManager.sol

// Manages a mapping of verified certificates and their metadata.
// The root of trust is the AWS Nitro root cert.
// Certificate revocation is not currently supported.
contract CertManager is ICertManager {
using Asn1Decode for bytes;
using LibAsn1Ptr for Asn1Ptr;
Expand Down

0 comments on commit d08e7ce

Please sign in to comment.