- Source:
AWS Nitro Enclaves
Methods
(async, static) verifyAttestation(document, debugopt) → {AttestationResult}
- Source:
- Since:
- 0.1.7
Verify a AWS Nitro attestation document. Validates the attestation document signature and certificate.
NOTE: You still need to verify the PCRs yourself to check if the request is generated by the desired enclave image.
Example
const trust = require('trust-center');
await trust.enclaves.nitro.verify(validDocument); // -> {valid: true, attr: {...}}
await trust.enclaves.nitro.verify(invalidDocument); // -> {valid: false, reason: '...'}
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
document |
Buffer | AWS Nitro attestation document as a Buffer | ||
debug |
boolean |
<optional> |
false
|
Include advanced error details in response |
Returns:
The validation result and attestation document attributes or rejection reason
- Type
- AttestationResult