Skip to content

get Command

Retrieves the payload from a signed object and saves the contents to a file.

This command extracts the payload without verifying its signature. Use verify to check the signature.

Note

get is only compatible with signed COSE objects at present. See RIM Types for details.

Usage

rim get -r <string> -i <file> -o <file>

Parameters

Parameter Description Required Type
-r, --rim-type Specifies the RIM type. Yes String
-i, --in The signed input file to retrieve the payload from. Yes File
-o, --out The output file to write the payload to. Yes File

Examples

Before Starting

Before running these examples, please ensure that you change into the data directory (requires installation):

cd /opt/rimtool/data

Retrieve a payload from a signed CoRIM:

rim get -r corim_comid --in corim/corim_1.signed.corim.cose --out ~/corim_1.corim.cose

Retrieve a payload from a signed CoSWID tag:

rim get -r coswid --in coswid/coswid_rim_1.signed.coswid.cose --out ~/coswid_rim_1.coswid