Files
Danko Miladinovic 0574abc228 NOISSUE - Add Rust script for fetching platform data (#133)
* add rust program for fetching platform data

* fix new line error

* add CLI options to add the measurement to platform_info.json file

* add documentation for platform info testing

* add explanation for sev-snp-measure

* delete excess space

* fix minor errors

* fix minor errors

* add file permision constant
2024-05-28 18:08:07 +02:00
..

Rust project for fetching platform info

This rust project fetches information from the host system needed for validation of the attestation report. It outputs a JSON file that contains the said information. The JSON file is in a format that can be used with the go-sev-guest library.

Usage

Clone cocos repository:

git clone git@github.com:ultravioletrs/cocos.git
cd ./cocos/scripts/platform_info 
make

Then run the binary. Keep in mind that you have to specify the policy of the Guest VM:

cd ./target/releas

# Run with option --policy (policy is 64 bit number) 
./platform_info --policy 196608