HIRS/tools/tcg_rim_tool
2023-06-20 11:10:39 -04:00
..
gradle/wrapper Rename project to tcg_rim_tool and move under tools/ directory 2020-01-06 16:14:04 -05:00
libs Rename project to tcg_rim_tool and move under tools/ directory 2020-01-06 16:14:04 -05:00
scripts Remove KeyValue element from signed swidtag. Update error message for missing signer cert. Update version number. 2021-07-23 17:41:31 -04:00
src Change xmlns:hirs to xmlns:pcRim, update unit tests accordingly 2023-06-20 11:10:39 -04:00
build.gradle Debug failing unit tests 2022-08-26 10:11:35 -04:00
gradlew Rename project to tcg_rim_tool and move under tools/ directory 2020-01-06 16:14:04 -05:00
gradlew.bat Rename project to tcg_rim_tool and move under tools/ directory 2020-01-06 16:14:04 -05:00
keystore.jks Modify validator class to handle JKS and PEM truststores appropriately. 2023-03-01 20:03:20 -05:00
package.sh Add git timestamp and hash to the rpm name. Also centralize version number to package.sh. 2022-03-04 10:19:06 -05:00
README.md Update README.md 2020-08-12 12:03:02 +00:00
rim_fields.json Check Directory and File for supportRIMFormat. An empty value defaults to TCG_EventLog_Assertion. Update unit tests. 2022-03-14 14:21:18 -04:00
RimSignCert.pem Print AIA extension from validation cert 2020-07-23 10:06:49 -04:00
tcg_rim_tool.spec Prevent jar file from being truncated by packaging. 2022-03-04 10:19:06 -05:00

To support the TCG RIM concept a new command line application alled the The tcg_rim_tool has been created. The tcg_rim_tool can be used to create NISTIR 8060 compatible SWID tags that adhere to the TCG PC Client RIM specification. It also supports the ability to digitally sign the Base RIM file as the HIRS ACA will require a valid signature in order to upload any RIM file.

Building

To build this tool navigate to the tcg_eventlog-tool directory and use the following commmand:

./gradlew clean build

Packaging

To package the tcg_rim_tool use the package.sh script to produce an RPM file for Linux distrobustions that support thw RPM package manager. The rpm file will be located in the rpmbuild/RPMS/x86_64/ directory if the package script was sucessful. Although packaging for other distributions is not currently avialble the tool can be built an run on other systems that support java and gradle, such as windows 10.

Usage

The tcg_rim_tool rpm will create a rim commandline shortcut. This can be invoked from a command line:

rim -h

The tcg_eventlog_tool also can be invoked using java from the tcg_eventlog_tool directory:

java -jar build/libs/tools/tcg_rim_tool-1.0.jar -h

Current options for the tool can be found using the -h option.