-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Feature request addition to the Redfish-Tacklebox: rf_componentintegrity.py
Retrieving SPDM Signed Measurements has multiple steps, it would be good to have a tool to:
- List all members in the ComponentIntegrity
- Fetch the measurements of a specific device, validate they are signed, and extract/print them in JSON format
When fetching ComponentIntegrity measurements, there are multiple steps:
- GET ComponentIntegrity/DEVNAME
- GET from the above, the SPDM / IdentityAuthentication / ResponderAuthentication / ComponentCertificate
- Validate that the returned certificate chain is valid
- POST the action #ComponentIntegrity.SPDMGetSignedMeasurements using either a random number or a user-supplied NONCE, and an optional slot number
- POLL for the task action to complete
- GET the ComponentIntegrity.SPDMGetSignedMeasurements/data when the task completes
- Extract the SignedMeasurements and decode
- Validate that the SignedMeasurements were fetched using the NONCE used in step 4
- Validate that the SignedMeasurements are properly signed by the certificate returned earlier
- Print the SignedMeasurements in JSON format
Code to perform certificate chain validate and SignedMeasurements validation are in libspdm and should be leveraged with that team.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels