Example Commands

NVIDIA Device Attestation and CoRIM-based Reference Measurement Sharing v1.0
  • Dump the CoRIM file in JSON format using cocli:

    • Remove the leading IANA global content tags

      Copy
      Copied!
                  

      dd bs=1 skip=6 if=<signed-CoRIM> of=<untagged.corim> 

    • Display CoRIM in JSON:

      Copy
      Copied!
                  

      cocli corim display -f <untagged.corim> 

  • Extract CoMIDs from the CoRIM using cocli:

    • Extract CoMIDs in CBOR format:

      Copy
      Copied!
                  

      cocli corim extract -f <untagged.corim>

Note: This extracts multiple CoMID files.

    • Dump CoMIDs in JSON format:

      Copy
      Copied!
                  

      cocli comid display -f <extracted-cbor-file> 

    • Verify COSE signature

Reference code can be found in this git repository.

© Copyright 2023, NVIDIA. Last updated on Sep 5, 2023.