From 59e2ac65e7f0f29baa60fab9954a7d896df7999e Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Mon, 15 Jul 2024 15:05:31 -0400 Subject: [PATCH 01/26] packaging rimtool for windows --- .github/workflows/hirs_package_linux.yml | 5 +++ .../create_hirstools_desktop_shortcut.ps1 | 7 ++++ package/win/tcg-rim-tool/eventLog.ps1 | 11 ++++++ package/win/tcg-rim-tool/hirsshell.ps1 | 15 ++++++++ package/win/tcg-rim-tool/rim.ps1 | 11 ++++++ tools/tcg_rim_tool/build.gradle | 34 +++++++++++++++++++ 6 files changed, 83 insertions(+) create mode 100644 package/win/tcg-rim-tool/create_hirstools_desktop_shortcut.ps1 create mode 100644 package/win/tcg-rim-tool/eventLog.ps1 create mode 100644 package/win/tcg-rim-tool/hirsshell.ps1 create mode 100644 package/win/tcg-rim-tool/rim.ps1 diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 5406ad06..75b98970 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -66,4 +66,9 @@ jobs: name: JAR_Files path: artifacts/jars/ if-no-files-found: error + - name: ZIP_Files + uses: actions/upload-artifact@v3 + with: + path: tools/tcg_rim_tool/build/distributions/*.zip + \ No newline at end of file diff --git a/package/win/tcg-rim-tool/create_hirstools_desktop_shortcut.ps1 b/package/win/tcg-rim-tool/create_hirstools_desktop_shortcut.ps1 new file mode 100644 index 00000000..748b2126 --- /dev/null +++ b/package/win/tcg-rim-tool/create_hirstools_desktop_shortcut.ps1 @@ -0,0 +1,7 @@ + +# Create a shortcut to start the RIM shell +$WshShell = New-Object -comObject WScript.Shell +$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\HIRS_tools.lnk") +$Shortcut.TargetPath = "$PWD\hirsshell.ps1" +$Shortcut.WorkingDirectory = "$PWD" +$Shortcut.Save() diff --git a/package/win/tcg-rim-tool/eventLog.ps1 b/package/win/tcg-rim-tool/eventLog.ps1 new file mode 100644 index 00000000..7307cd50 --- /dev/null +++ b/package/win/tcg-rim-tool/eventLog.ps1 @@ -0,0 +1,11 @@ +# Script to run the tcg_rim_tool in java + +$JavaParams = @{ + FilePath = 'java' + ArgumentList = @( + '-jar "{0}"' -f "$PWD\tcg_eventlog_tool-2.1.3.jar" + "$args" + ) +} + +Start-Process @JavaParams -NoNewWindow -Wait \ No newline at end of file diff --git a/package/win/tcg-rim-tool/hirsshell.ps1 b/package/win/tcg-rim-tool/hirsshell.ps1 new file mode 100644 index 00000000..ae85c109 --- /dev/null +++ b/package/win/tcg-rim-tool/hirsshell.ps1 @@ -0,0 +1,15 @@ +# Script to start a new shell with a rim alias +$StartInfo = new-object System.Diagnostics.ProcessStartInfo +$StartInfo.FileName = "$pshome\powershell.exe" +$StartInfo.Arguments = "-NoExit -Command + `$Host.UI.RawUI.WindowTitle=`'TCG RIM TOOL`'; + Set-Alias elt '$PWD\eventlog.ps1'; + Set-Alias rim '$PWD\rim.ps1'; + # function rim { java -jar 'tcg_rim_tool-2.1.0.jar' $args; }; + echo 'The TCG RIM TOOL is intended for testing TCG Defined PC Client Reference Integrity Manifests (RIMs)'; + echo 'for usage type: rim -h'; + echo 'for eventlog usage type: elt -h' + Set-Location -Path $PWD; + function prompt {'HIRS > '};" +[System.Diagnostics.Process]::Start($StartInfo) + diff --git a/package/win/tcg-rim-tool/rim.ps1 b/package/win/tcg-rim-tool/rim.ps1 new file mode 100644 index 00000000..75168c6a --- /dev/null +++ b/package/win/tcg-rim-tool/rim.ps1 @@ -0,0 +1,11 @@ +# Script to run the tcg_rim_tool in java + +$JavaParams = @{ + FilePath = 'java' + ArgumentList = @( + '-jar "{0}"' -f "$PWD\tcg_rim_tool-2.1.0.jar" + "$args" + ) +} + +Start-Process @JavaParams -NoNewWindow -Wait \ No newline at end of file diff --git a/tools/tcg_rim_tool/build.gradle b/tools/tcg_rim_tool/build.gradle index fc39524c..6f507255 100644 --- a/tools/tcg_rim_tool/build.gradle +++ b/tools/tcg_rim_tool/build.gradle @@ -131,3 +131,37 @@ buildRpm { buildDeb { arch = 'amd64' } + +task buildZip(type: Zip){ + dependsOn jar + from(tasks.jar.archiveFile){ + into '/' + } + from('README.md') { + into '/' + } + from('./build/resources/test/rim_fields.json'){ + into '/' + } + from('../../package/win/tcg_rim_tool/rim.ps1'){ + into '/' + } + from('../../package/win/tcg_rim_tool/hirsshell.ps1'){ + into '/' + } + from('../../package/win/tcg_rim_tool/eventLog.ps1'){ + into '/' + } + from('../../package/win/tcg_rim_tool/create_hirstools_desktop_shortcut.ps1'){ + into '/' + } + +// arch = 'win' + // project_subproject-release version_data-git commit hash-arch.extension + archiveBaseName.set(project.name + '-' + jarVersion) + archiveExtension.set('zip') + destinationDirectory.set(file("$buildDir/distributions")) +} + +buildZip.dependsOn jar +//build.dependsOn buildZip \ No newline at end of file From 13177712abd41cf16320bd34e3f491eaa7bcfef1 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Mon, 15 Jul 2024 15:16:57 -0400 Subject: [PATCH 02/26] packaging rimtool for windows --- .github/workflows/hirs_package_linux.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 75b98970..cf00ae7f 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -38,10 +38,12 @@ jobs: ./gradlew bootWar; ./gradlew buildDeb; ./gradlew buildRpm; + ./gradlew buildZip cp HIRS_AttestationCAPortal/build/libs/*.jar artifacts/jars/. cp HIRS_AttestationCA/build/libs/*.jar artifacts/jars/. cp HIRS_Utils/build/libs/*.jar artifacts/jars/. cp HIRS_Structs/build/libs/*.jar artifacts/jars/. + cp tools/tcg_rim_tool/build/distributions/*.zip - name: Archive RPM files uses: actions/upload-artifact@v3 with: @@ -69,6 +71,8 @@ jobs: - name: ZIP_Files uses: actions/upload-artifact@v3 with: - path: tools/tcg_rim_tool/build/distributions/*.zip + name: ZIP_Files + path: artifacts/jars/ + if-no-files-found: error \ No newline at end of file From ae0529b93a74553f54c585d1864911a96ebdba22 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Mon, 15 Jul 2024 15:22:55 -0400 Subject: [PATCH 03/26] packaging rimtool for windows --- .github/workflows/hirs_package_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index cf00ae7f..bcaa02c1 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -43,7 +43,7 @@ jobs: cp HIRS_AttestationCA/build/libs/*.jar artifacts/jars/. cp HIRS_Utils/build/libs/*.jar artifacts/jars/. cp HIRS_Structs/build/libs/*.jar artifacts/jars/. - cp tools/tcg_rim_tool/build/distributions/*.zip + cp tools/tcg_rim_tool/build/distributions/*.zip . - name: Archive RPM files uses: actions/upload-artifact@v3 with: From b2158352dcf1298f0f3543cd4e0eee27f87736eb Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Mon, 15 Jul 2024 15:36:45 -0400 Subject: [PATCH 04/26] packaging rimtool for windows --- .github/workflows/hirs_package_linux.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index bcaa02c1..6beb8534 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -43,7 +43,6 @@ jobs: cp HIRS_AttestationCA/build/libs/*.jar artifacts/jars/. cp HIRS_Utils/build/libs/*.jar artifacts/jars/. cp HIRS_Structs/build/libs/*.jar artifacts/jars/. - cp tools/tcg_rim_tool/build/distributions/*.zip . - name: Archive RPM files uses: actions/upload-artifact@v3 with: @@ -72,7 +71,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: ZIP_Files - path: artifacts/jars/ + path: tools/tcg-rim-tool/build/distributions/*.zip if-no-files-found: error \ No newline at end of file From 0193612ca588151a711809098629dfa70539ee16 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Mon, 15 Jul 2024 15:44:29 -0400 Subject: [PATCH 05/26] packaging rimtool for windows --- .github/workflows/hirs_package_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 6beb8534..7a1f5198 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -71,7 +71,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: ZIP_Files - path: tools/tcg-rim-tool/build/distributions/*.zip + path: tools/tcg_rim_tool/build/distributions/*.zip if-no-files-found: error \ No newline at end of file From 5ee890e8e947aeca787ca542d612386656f52549 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Mon, 15 Jul 2024 16:03:00 -0400 Subject: [PATCH 06/26] packaging rimtool for windows --- .github/workflows/hirs_package_linux.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 7a1f5198..08cef43f 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -72,6 +72,7 @@ jobs: with: name: ZIP_Files path: tools/tcg_rim_tool/build/distributions/*.zip + package/win/tcg-rim-tool/ if-no-files-found: error \ No newline at end of file From 4cc207fc39ae9a930d8f14b329d3aaf382c1d669 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Mon, 15 Jul 2024 16:12:19 -0400 Subject: [PATCH 07/26] packaging rimtool for windows --- .github/workflows/hirs_package_linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 08cef43f..2a974914 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -71,8 +71,8 @@ jobs: uses: actions/upload-artifact@v3 with: name: ZIP_Files - path: tools/tcg_rim_tool/build/distributions/*.zip - package/win/tcg-rim-tool/ + path: package/win/tcg-rim-tool/ + if-no-files-found: error \ No newline at end of file From aa8b48f5f355889cb38da7952f78d01c8d743af1 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Mon, 15 Jul 2024 16:28:54 -0400 Subject: [PATCH 08/26] packaging rimtool for windows --- .github/workflows/hirs_package_linux.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 2a974914..373cd82a 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -71,8 +71,9 @@ jobs: uses: actions/upload-artifact@v3 with: name: ZIP_Files - path: package/win/tcg-rim-tool/ - + path: | + package/win/tcg-rim-tool/ + tools/tcg_rim_tool/build/distributions/*.zip if-no-files-found: error \ No newline at end of file From 91567712910b66aada607d934b2a53233f7f3df4 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Tue, 16 Jul 2024 08:41:44 -0400 Subject: [PATCH 09/26] working on windows packaging --- .github/workflows/hirs_package_linux.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 373cd82a..8bd370e3 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -26,6 +26,7 @@ jobs: - name: directory setup run: | mkdir -p artifacts/jars + mkdir -p artifact/win - name: install dependencies run: | sudo apt-get update @@ -43,6 +44,8 @@ jobs: cp HIRS_AttestationCA/build/libs/*.jar artifacts/jars/. cp HIRS_Utils/build/libs/*.jar artifacts/jars/. cp HIRS_Structs/build/libs/*.jar artifacts/jars/. + cp tools/tcg_rim_tool/build/distributions/*.zip artifacts/win + cp package/win/tcg-rim-tool artifacts/win - name: Archive RPM files uses: actions/upload-artifact@v3 with: @@ -71,9 +74,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: ZIP_Files - path: | - package/win/tcg-rim-tool/ - tools/tcg_rim_tool/build/distributions/*.zip + path: artifacts/win/ if-no-files-found: error \ No newline at end of file From d0f33119d80fc5b48d6f338bceb507c2a9489121 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Tue, 16 Jul 2024 09:12:58 -0400 Subject: [PATCH 10/26] working on windows packaging --- .github/workflows/hirs_package_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 8bd370e3..54ebf52c 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -45,7 +45,7 @@ jobs: cp HIRS_Utils/build/libs/*.jar artifacts/jars/. cp HIRS_Structs/build/libs/*.jar artifacts/jars/. cp tools/tcg_rim_tool/build/distributions/*.zip artifacts/win - cp package/win/tcg-rim-tool artifacts/win + cp package/win/tcg-rim-tool/*.ps1 artifacts/win - name: Archive RPM files uses: actions/upload-artifact@v3 with: From 298cd3286aed94a890d4cc224a5b030d8072bfd8 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Tue, 16 Jul 2024 09:21:20 -0400 Subject: [PATCH 11/26] working on windows packaging --- .github/workflows/hirs_package_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 54ebf52c..016c1a82 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -26,7 +26,7 @@ jobs: - name: directory setup run: | mkdir -p artifacts/jars - mkdir -p artifact/win + mkdir -p artifacts/win - name: install dependencies run: | sudo apt-get update From a62b3bbb6fc1261150d7f7c9bf8735e96dea0cbd Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Tue, 16 Jul 2024 10:02:39 -0400 Subject: [PATCH 12/26] working on windows packaging --- tools/tcg_rim_tool/build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/tcg_rim_tool/build.gradle b/tools/tcg_rim_tool/build.gradle index 6f507255..6139a017 100644 --- a/tools/tcg_rim_tool/build.gradle +++ b/tools/tcg_rim_tool/build.gradle @@ -143,16 +143,16 @@ task buildZip(type: Zip){ from('./build/resources/test/rim_fields.json'){ into '/' } - from('../../package/win/tcg_rim_tool/rim.ps1'){ + from('../../package/win/tcg-rim-tool/rim.ps1'){ into '/' } - from('../../package/win/tcg_rim_tool/hirsshell.ps1'){ + from('../../package/win/tcg-rim-tool/hirsshell.ps1'){ into '/' } - from('../../package/win/tcg_rim_tool/eventLog.ps1'){ + from('../../package/win/tcg-rim-tool/eventLog.ps1'){ into '/' } - from('../../package/win/tcg_rim_tool/create_hirstools_desktop_shortcut.ps1'){ + from('../../package/win/tcg-rim-tool/create_hirstools_desktop_shortcut.ps1'){ into '/' } From 128e2f90ab321f806267a87740b4da45afc30ffe Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Tue, 16 Jul 2024 11:48:59 -0400 Subject: [PATCH 13/26] adjust paths --- .github/workflows/hirs_package_linux.yml | 10 +++++----- tools/tcg_eventlog_tool/build.gradle | 18 ++++++++++++++++++ tools/tcg_rim_tool/build.gradle | 20 ++------------------ 3 files changed, 25 insertions(+), 23 deletions(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 016c1a82..4125312d 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -47,31 +47,31 @@ jobs: cp tools/tcg_rim_tool/build/distributions/*.zip artifacts/win cp package/win/tcg-rim-tool/*.ps1 artifacts/win - name: Archive RPM files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: RPM_Files path: HIRS_AttestationCAPortal/build/distributions/*.rpm if-no-files-found: error - name: Archive DEB files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: DEB_Files path: HIRS_AttestationCAPortal/build/distributions/*.deb if-no-files-found: error - name: War files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: WAR_Files path: HIRS_AttestationCAPortal/build/libs/HIRS_AttestationCAPortal.war if-no-files-found: error - name: JAR_Files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: JAR_Files path: artifacts/jars/ if-no-files-found: error - name: ZIP_Files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ZIP_Files path: artifacts/win/ diff --git a/tools/tcg_eventlog_tool/build.gradle b/tools/tcg_eventlog_tool/build.gradle index 6775b515..8c19820a 100644 --- a/tools/tcg_eventlog_tool/build.gradle +++ b/tools/tcg_eventlog_tool/build.gradle @@ -123,4 +123,22 @@ ospackage { buildDeb { arch = X86_64 } + } + +// +//task buildZip(type: Zip){ +// dependsOn jar +// from(tasks.jar.archiveFile){ +// into '/' +// } +// +//// arch = 'win' +// // project_subproject-release version_data-git commit hash-arch.extension +// archiveBaseName.set(project.name + '-' + jarVersion) +// archiveExtension.set('zip') +// destinationDirectory.set(file("$buildDir/distributions")) +//} +// +//buildZip.dependsOn jar +////build.dependsOn buildZip \ No newline at end of file diff --git a/tools/tcg_rim_tool/build.gradle b/tools/tcg_rim_tool/build.gradle index 6139a017..eeb324e4 100644 --- a/tools/tcg_rim_tool/build.gradle +++ b/tools/tcg_rim_tool/build.gradle @@ -137,28 +137,12 @@ task buildZip(type: Zip){ from(tasks.jar.archiveFile){ into '/' } - from('README.md') { - into '/' - } from('./build/resources/test/rim_fields.json'){ into '/' } - from('../../package/win/tcg-rim-tool/rim.ps1'){ - into '/' - } - from('../../package/win/tcg-rim-tool/hirsshell.ps1'){ - into '/' - } - from('../../package/win/tcg-rim-tool/eventLog.ps1'){ - into '/' - } - from('../../package/win/tcg-rim-tool/create_hirstools_desktop_shortcut.ps1'){ - into '/' - } -// arch = 'win' - // project_subproject-release version_data-git commit hash-arch.extension - archiveBaseName.set(project.name + '-' + jarVersion) + + archiveBaseName.set(project.name) archiveExtension.set('zip') destinationDirectory.set(file("$buildDir/distributions")) } From dfd0c858224b8570f1a2cc309909151a722ce06f Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Tue, 16 Jul 2024 15:57:33 -0400 Subject: [PATCH 14/26] added all rim files needed to gradle build --- .../certs/COMP_OEM1_Cert_Chain.pem | 120 ++++++++++++++++ .../COMP_OEM1_rim_signer_ecc_512_sha384.pem | 19 +++ .../COMP_OEM1_rim_signer_rsa_3k_sha384.pem | 30 ++++ .ci/tcg-rim-tool/certs/PC_OEM1_Cert_Chain.pem | 120 ++++++++++++++++ .../certs/PC_OEM1_RSA_Cert_Chain.pem | 120 ++++++++++++++++ .../certs/PC_OEM1_ecc_Cert_Chain.pem | 76 ++++++++++ .../PC_OEM1_rim_signer_ecc_512_sha384.pem | 19 +++ .../PC_OEM1_rim_signer_rsa_3k_sha384.pem | 30 ++++ .ci/tcg-rim-tool/certs/PC_OEM2_Cert_Chain.pem | 120 ++++++++++++++++ .../PC_OEM2_rim_signer_rsa_3k_sha384.pem | 30 ++++ .ci/tcg-rim-tool/configs/Base_Rim_Config.json | 53 +++++++ .../configs/Component1_Rim_Config.json | 54 +++++++ .../configs/Patch_RIM_Config.json | 53 +++++++ .../configs/Primary_Rim_Config.json | 54 +++++++ .../configs/Supplemental_Rim_Config.json | 53 +++++++ .ci/tcg-rim-tool/eventlogs/TpmLog.bin | Bin 0 -> 7549 bytes .ci/tcg-rim-tool/eventlogs/TpmLog2.bin | Bin 0 -> 7549 bytes .../COMP_OEM1_rim_signer_rsa_3k_sha384.key | 40 ++++++ .../PC_OEM1_rim_signer_ecc_512_sha384.key | 10 ++ .../keys/PC_OEM1_rim_signer_rsa_3k_sha384.key | 40 ++++++ .../keys/PC_OEM2_rim_signer_rsa_3k_sha384.key | 40 ++++++ .../scripts/base_rim_nocert_very_fail.sh | 21 +++ .../bindingSpecprimary_rim_noconfig_fail.sh | 14 ++ .../scripts/composite_rim_create_pass.sh | 40 ++++++ .../scripts/patch_rim_create_pass.sh | 33 +++++ .../scripts/primary_rim_create_pass.sh | 37 +++++ .../scripts/primary_rim_embedd_pass.sh | 34 +++++ .../scripts/primary_rim_noeventlog_fail.sh | 14 ++ .../scripts/primary_rim_nokey_fail.sh | 14 ++ .ci/tcg-rim-tool/scripts/rim_functions.sh | 132 ++++++++++++++++++ .ci/tcg-rim-tool/scripts/run_all_tests.sh | 89 ++++++++++++ tools/tcg_rim_tool/build.gradle | 16 ++- 32 files changed, 1524 insertions(+), 1 deletion(-) create mode 100644 .ci/tcg-rim-tool/certs/COMP_OEM1_Cert_Chain.pem create mode 100644 .ci/tcg-rim-tool/certs/COMP_OEM1_rim_signer_ecc_512_sha384.pem create mode 100644 .ci/tcg-rim-tool/certs/COMP_OEM1_rim_signer_rsa_3k_sha384.pem create mode 100644 .ci/tcg-rim-tool/certs/PC_OEM1_Cert_Chain.pem create mode 100644 .ci/tcg-rim-tool/certs/PC_OEM1_RSA_Cert_Chain.pem create mode 100644 .ci/tcg-rim-tool/certs/PC_OEM1_ecc_Cert_Chain.pem create mode 100644 .ci/tcg-rim-tool/certs/PC_OEM1_rim_signer_ecc_512_sha384.pem create mode 100644 .ci/tcg-rim-tool/certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem create mode 100644 .ci/tcg-rim-tool/certs/PC_OEM2_Cert_Chain.pem create mode 100644 .ci/tcg-rim-tool/certs/PC_OEM2_rim_signer_rsa_3k_sha384.pem create mode 100644 .ci/tcg-rim-tool/configs/Base_Rim_Config.json create mode 100644 .ci/tcg-rim-tool/configs/Component1_Rim_Config.json create mode 100644 .ci/tcg-rim-tool/configs/Patch_RIM_Config.json create mode 100644 .ci/tcg-rim-tool/configs/Primary_Rim_Config.json create mode 100644 .ci/tcg-rim-tool/configs/Supplemental_Rim_Config.json create mode 100644 .ci/tcg-rim-tool/eventlogs/TpmLog.bin create mode 100644 .ci/tcg-rim-tool/eventlogs/TpmLog2.bin create mode 100644 .ci/tcg-rim-tool/keys/COMP_OEM1_rim_signer_rsa_3k_sha384.key create mode 100644 .ci/tcg-rim-tool/keys/PC_OEM1_rim_signer_ecc_512_sha384.key create mode 100644 .ci/tcg-rim-tool/keys/PC_OEM1_rim_signer_rsa_3k_sha384.key create mode 100644 .ci/tcg-rim-tool/keys/PC_OEM2_rim_signer_rsa_3k_sha384.key create mode 100755 .ci/tcg-rim-tool/scripts/base_rim_nocert_very_fail.sh create mode 100755 .ci/tcg-rim-tool/scripts/bindingSpecprimary_rim_noconfig_fail.sh create mode 100755 .ci/tcg-rim-tool/scripts/composite_rim_create_pass.sh create mode 100755 .ci/tcg-rim-tool/scripts/patch_rim_create_pass.sh create mode 100755 .ci/tcg-rim-tool/scripts/primary_rim_create_pass.sh create mode 100755 .ci/tcg-rim-tool/scripts/primary_rim_embedd_pass.sh create mode 100755 .ci/tcg-rim-tool/scripts/primary_rim_noeventlog_fail.sh create mode 100755 .ci/tcg-rim-tool/scripts/primary_rim_nokey_fail.sh create mode 100755 .ci/tcg-rim-tool/scripts/rim_functions.sh create mode 100755 .ci/tcg-rim-tool/scripts/run_all_tests.sh diff --git a/.ci/tcg-rim-tool/certs/COMP_OEM1_Cert_Chain.pem b/.ci/tcg-rim-tool/certs/COMP_OEM1_Cert_Chain.pem new file mode 100644 index 00000000..d09fafad --- /dev/null +++ b/.ci/tcg-rim-tool/certs/COMP_OEM1_Cert_Chain.pem @@ -0,0 +1,120 @@ +-----BEGIN CERTIFICATE----- +MIIFJzCCA4+gAwIBAgIBCTANBgkqhkiG9w0BAQwFADB5MQswCQYDVQQGEwJVUzEL +MAkGA1UECAwCT1IxEjAQBgNVBAcMCUJlYXZlcnRvbjESMBAGA1UECgwJQ09NUF9P +RU0xMTUwMwYDVQQDDCxDT01QX09FTTEgcnNhIDNrIHNoYTM4NCB0ZXN0IGludGVy +bWVkaWF0ZSBjYTAeFw0yMzExMTUxMzUwMzlaFw0zMzExMTIxMzUwMzlaMG0xCzAJ +BgNVBAY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czAoBgNVHR8EITAfMB2gG6AZhhdo +dHRwczovL2V4YW1wbGUuY29tL2NybDANBgkqhkiG9w0BAQsFAAOCAYEAddkaKGev +SF/pHWs6jeEPfhAYVurR7udXoKOFcpYxKjJbFKlOMAjyjElNAPJvr8YzGmZtjUts +BH0cFcFMlk0QN669EbQd8gS0wVW80Cn70MLHJw8eNXkmFIeBBdb4pbcY0OyZTQc3 +eJoOvHRRLRFX+a39ekrxfdNzIaphEQM6jY5lxBRRi9AEt08dQjKmIo5cfgTlFqTp +zAapmF54HK5DWY/VS3vYl4iPBZa/OPhZRGeIsfnn55PKsPu6/kPZOE60idoSTVAy +YSRi4zia8OrzBfeYuY7VV1yZ+8amWBr86FzvN0/lhFv98evRWa/TXWFqn3jmvde3 +X/sLlBPlp8+tjsOlBaKh5tSaVSrtu8VJKyugPqScBdGpzJPNDXvL7/8riHO5JNQs +Qv/TEB2iWV7YjfE5rVX4oVUWA9A2+OGNvraOcgCGqPpwpIvd2NNlbEDba00sbPxy +mSiqW2g9qhIaUCO2VtwcPOSGU41KYM+L2+HvdCPUacmpZyKrN//7ZYDd +-----END CERTIFICATE----- diff --git a/.ci/tcg-rim-tool/certs/COMP_OEM1_rim_signer_ecc_512_sha384.pem b/.ci/tcg-rim-tool/certs/COMP_OEM1_rim_signer_ecc_512_sha384.pem new file mode 100644 index 00000000..6d04cc0f --- /dev/null +++ b/.ci/tcg-rim-tool/certs/COMP_OEM1_rim_signer_ecc_512_sha384.pem @@ -0,0 +1,19 @@ +-----BEGIN CERTIFICATE----- +MIIDGzCCAn2gAwIBAgIBBTAKBggqhkjOPQQDAzBuMQswCQYDVQQGEwJVUzELMAkG +A1UECAwCT1IxEjAQBgNVBAcMCUJlYXZlcnRvbjESMBAGA1UECgwJQ09NUF9PRU0x +MSowKAYDVQQDDCFDT01QX09FTTEgZWNjIDUxMiBzaGEzODQgdGVzdCBjYTIwHhcN +MjMxMTE1MTM1MDE0WhcNMzMxMTEyMTM1MDE0WjBxMQswCQYDVQQGEwJVUzELMAkG +A1UECAwCT1IxEjAQBgNVBAcMCUJlYXZlcnRvbjESMBAGA1UECgwJQ09NUF9PRU0x +MS0wKwYDVQQDDCRDT01QX09FTTEgZWNjIDUxMiBzaGEzODQgdGVzdCBzaWduZXIw +gZswEAYHKoZIzj0CAQYFK4EEACMDgYYABAFifPNrrIEAGeQW8qsT5b83l5nQv9is +V0p8yFbI6t+QjOrNgEr84gLzHxxQ46V0xdbU4cDIdFThBBtS8POl2JFrmgEmtvla +Mbdz0lysCN2f1p25/gQvnfz6Osy0OVcG1EHNVb9cfvpF4ziv3LgWWBv5d8RccYET +ooHUIQ06Z1DTFslKYqOBxTCBwjAdBgNVHQ4EFgQUBY/cQD+V6CpSRunMvsITbFQl +J4owHwYDVR0jBBgwFoAU84u4W4tTUrALow01cbc6z8xup6QwDwYDVR0TAQH/BAUw +AwEB/zAOBgNVHQ8BAf8EBAMCAYYwNQYIKwYBBQUHAQEEKTAnMCUGCCsGAQUFBzAC +hhlodHRwczovL2V4YW1wbGUuY29tL2NlcnRzMCgGA1UdHwQhMB8wHaAboBmGF2h0 +dHBzOi8vZXhhbXBsZS5jb20vY3JsMAoGCCqGSM49BAMDA4GLADCBhwJCAMCwsiui +/dMNE+hGjiWaWAIfwq9pIg/WuSA21EUjEiAOZ7iE9YR8k1eD+UiIhmdDmLVqhmr9 +Y3UoskyExVvmlZaQAkFpkJzuzlqTov1eGxgjzTudyUEu8YT2Kv3t5ZjVIB1lL4VW +R1NjxDYO6Oa7zLdriCiEAb/lbTdjC697uUWub75syg== +-----END CERTIFICATE----- diff --git a/.ci/tcg-rim-tool/certs/COMP_OEM1_rim_signer_rsa_3k_sha384.pem b/.ci/tcg-rim-tool/certs/COMP_OEM1_rim_signer_rsa_3k_sha384.pem new file mode 100644 index 00000000..1f4d7246 --- /dev/null +++ b/.ci/tcg-rim-tool/certs/COMP_OEM1_rim_signer_rsa_3k_sha384.pem @@ -0,0 +1,30 @@ +-----BEGIN CERTIFICATE----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wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMDUG +CCsGAQUFBwEBBCkwJzAlBggrBgEFBQcwAoYZaHR0cHM6Ly9leGFtcGxlLmNvbS9j +ZXJ0czAoBgNVHR8EITAfMB2gG6AZhhdodHRwczovL2V4YW1wbGUuY29tL2NybDAN +BgkqhkiG9w0BAQwFAAOCAYEAfBlHSKGxQv8325o7tqLnpb6q1X9+E0xNAxPnq76A +6GhwlU+3nyjONus6XRElmgeV2wMaEyZedrjM9CJBkccA2ntFTu+2IDWDsHEwTIYu +3rk0LNMq5OJE7KOdWa1Hirio1U2wSWrMCwgHdwe3OE/hSv64S3RxIqgONfmUplgJ +5InwEQaVmCtWvR7RrcGrOpj6QS1zvc60PEe47AdelkTgCZcAnXaDfxtb8cSGduTS +YBoV6xPYlTmJDuEyLmDM2i9S8S3N7zMbXOlmRbjM/pUsMkSIHSNTtvWNk9YMqVsz +KM8fsrmvaa2wt/m2+TS1ZJxWplvU659vkMaBNS6rsaG+w5LoU83A6dhaXgvujAuR +57L8GOMoUWYn5iZWq/X9yvfq0WR+M3DvEIuI/zrT+oCTkElKlqJ3OZogkqLpkMXG +aF6PCpKFbtcWiuVLpAbvCwSNVe+pH3wfNhcapGUJWcotmY2RUkItilQOHGFUZZ2q +V/wUfRtKSjBh2rOD8rmZAjEY +-----END CERTIFICATE----- diff --git a/.ci/tcg-rim-tool/certs/PC_OEM1_Cert_Chain.pem b/.ci/tcg-rim-tool/certs/PC_OEM1_Cert_Chain.pem new file mode 100644 index 00000000..8face145 --- /dev/null +++ b/.ci/tcg-rim-tool/certs/PC_OEM1_Cert_Chain.pem @@ -0,0 +1,120 @@ +-----BEGIN CERTIFICATE----- +MIIFHzCCA4egAwIBAgIBAjANBgkqhkiG9w0BAQwFADB1MQswCQYDVQQGEwJVUzEL +MAkGA1UECAwCT1IxEjAQBgNVBAcMCUJlYXZlcnRvbjEQMA4GA1UECgwHUENfT0VN +MTEzMDEGA1UEAwwqUENfT0VNMSByc2Eg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BAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBhjA1BggrBgEFBQcBAQQpMCcwJQYIKwYBBQUHMAKGGWh0dHBz +Oi8vZXhhbXBsZS5jb20vY2VydHMwKAYDVR0fBCEwHzAdoBugGYYXaHR0cHM6Ly9l +eGFtcGxlLmNvbS9jcmwwDQYJKoZIhvcNAQELBQADggGBABYktvvP6dzQ4DeSWv0l +usjMenqWhDXmMoRCwa+RXASEBstZR0Ai2KnHWS0UNCMxcLaIJ0KfYVoxGbyTNirP +SvfBbdEAeVQspZUZ+tCJltQ1aCrIbity486AbCyqjfSwrsSUPJmflu5oo9lpkrqC +pIbP7Vm1WcYOa+KdcO8AvqChTLMlLURsBQx5Hya3KNDJqeM5g3t9LI6av4ZQk0Kg +NjlIfxbhmuTmClkVkY1Wks09vKOoGTsY02z1uy/GgDILWvnjyBQzrLcn0DNltV1Y +IzQxtO1of372B6axifLTBOd71WSTq2QDboe4FSopOYXlpOBjwIJjw9+7cmUf4fuK +CU7ve734+TBHUK4yNcH8ZfSACBXnZ2dPlQUXdTfm+4XvfPV21bvsz2VJ3InIfANp +UbeOiSJxY9uprDYG3hqO/yZnok66ioeom0N/4SJrm5a4uq+0PhQDY1e5Qbz0PD6m +VjdZfnoMFh185vEZPby1VpF9u5VE3vKVq9rRb0epwjx7Jg== +-----END CERTIFICATE----- diff --git a/.ci/tcg-rim-tool/certs/PC_OEM1_RSA_Cert_Chain.pem b/.ci/tcg-rim-tool/certs/PC_OEM1_RSA_Cert_Chain.pem new file mode 100644 index 00000000..8face145 --- /dev/null +++ b/.ci/tcg-rim-tool/certs/PC_OEM1_RSA_Cert_Chain.pem @@ -0,0 +1,120 @@ +-----BEGIN CERTIFICATE----- +MIIFHzCCA4egAwIBAgIBAjANBgkqhkiG9w0BAQwFADB1MQswCQYDVQQGEwJVUzEL +MAkGA1UECAwCT1IxEjAQBgNVBAcMCUJlYXZlcnRvbjEQMA4GA1UECgwHUENfT0VN +MTEzMDEGA1UEAwwqUEN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wGTAPBgNVHRMBAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBhjA1BggrBgEFBQcBAQQpMCcwJQYIKwYBBQUHMAKGGWh0dHBz +Oi8vZXhhbXBsZS5jb20vY2VydHMwKAYDVR0fBCEwHzAdoBugGYYXaHR0cHM6Ly9l +eGFtcGxlLmNvbS9jcmwwDQYJKoZIhvcNAQELBQADggGBABYktvvP6dzQ4DeSWv0l +usjMenqWhDXmMoRCwa+RXASEBstZR0Ai2KnHWS0UNCMxcLaIJ0KfYVoxGbyTNirP +SvfBbdEAeVQspZUZ+tCJltQ1aCrIbity486AbCyqjfSwrsSUPJmflu5oo9lpkrqC +pIbP7Vm1WcYOa+KdcO8AvqChTLMlLURsBQx5Hya3KNDJqeM5g3t9LI6av4ZQk0Kg +NjlIfxbhmuTmClkVkY1Wks09vKOoGTsY02z1uy/GgDILWvnjyBQzrLcn0DNltV1Y +IzQxtO1of372B6axifLTBOd71WSTq2QDboe4FSopOYXlpOBjwIJjw9+7cmUf4fuK +CU7ve734+TBHUK4yNcH8ZfSACBXnZ2dPlQUXdTfm+4XvfPV21bvsz2VJ3InIfANp +UbeOiSJxY9uprDYG3hqO/yZnok66ioeom0N/4SJrm5a4uq+0PhQDY1e5Qbz0PD6m +VjdZfnoMFh185vEZPby1VpF9u5VE3vKVq9rRb0epwjx7Jg== +-----END CERTIFICATE----- diff --git a/.ci/tcg-rim-tool/certs/PC_OEM1_ecc_Cert_Chain.pem b/.ci/tcg-rim-tool/certs/PC_OEM1_ecc_Cert_Chain.pem new file mode 100644 index 00000000..e5a94fce --- /dev/null +++ b/.ci/tcg-rim-tool/certs/PC_OEM1_ecc_Cert_Chain.pem @@ -0,0 +1,76 @@ +-----BEGIN CERTIFICATE----- +MIIDHTCCAn6gAwIBAgIBCTAKBggqhkjOPQQDAzB2MQswCQYDVQQGEwJVUzELMAkG +A1UECAwCT1IxEjAQBgNVBAcMCUJlYXZlcnRvbjEQMA4GA1UECgwHUENfT0VNMTE0 +MD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awRQYakN/6wc +TlYuTvgJ417NpLrbbG2/0IFiDRcavADAUGR3LNwORLjPK5NnuketDu4m2Msnovk= +-----END CERTIFICATE----- diff --git a/.ci/tcg-rim-tool/certs/PC_OEM1_rim_signer_ecc_512_sha384.pem b/.ci/tcg-rim-tool/certs/PC_OEM1_rim_signer_ecc_512_sha384.pem new file mode 100644 index 00000000..cec8bcf8 --- /dev/null +++ b/.ci/tcg-rim-tool/certs/PC_OEM1_rim_signer_ecc_512_sha384.pem @@ -0,0 +1,19 @@ +-----BEGIN CERTIFICATE----- +MIIDEzCCAnWgAwIBAgIBDDAKBggqhkjOPQQDAzBqMQswCQYDVQQGEwJVUzELMAkG +A1UECAwCT1IxEjAQBgNVBAcMCUJlYXZlcnRvbjEQMA4GA1UECgwHUENfT0VNMTEo +MCYGA1UEAwwfUENfT0VNMSBlY2MgNTEyIHNoYTM4NCB0ZXN0IGNhMjAeFw0yMzEx +MTUxMzQ5NThaFw0zMzExMTIxMzQ5NThaMG0xCzAJBgNVBAYTAlVTMQswCQYDVQQI +DAJPUjESMBAGA1UEBwwJQmVhdmVydG9uMRAwDgYDVQQKDAdQQ19PRU0xMSswKQYD +VQQDDCJQQ19PRU0xIGVjYyA1MTIgc2hhMzg0IHRlc3Qgc2lnbmVyMIGbMBAGByqG +SM49AgEGBSuBBAAjA4GGAAQAbs4DBnZ/myUu98Mx+RF7AYaeaexZV8QyHgeelA36 +gBvVbqMfnYdk1dsFTd+UHQFTiZ72kX8XBfFWfgeNbauzZgwA2chCojFQQEseW1be +MID6dJE3StZdm0gOnaY30BnM8MwJL8rLuNRAL+eKflPbVB2kltMrjcNBDw8ba/Lk +f++z9UqjgcUwgcIwHQYDVR0OBBYEFETnwNO85oN2AwJytUyrgl0SFW9rMB8GA1Ud +IwQYMBaAFLy1H64thl5FMvR1HPolC3k13dCnMA8GA1UdEwEB/wQFMAMBAf8wDgYD +VR0PAQH/BAQDAgGGMDUGCCsGAQUFBwEBBCkwJzAlBggrBgEFBQcwAoYZaHR0cHM6 +Ly9leGFtcGxlLmNvbS9jZXJ0czAoBgNVHR8EITAfMB2gG6AZhhdodHRwczovL2V4 +YW1wbGUuY29tL2NybDAKBggqhkjOPQQDAwOBiwAwgYcCQgGLZqNkri027hPvjBby +2tM2HA3dTIhGdrcGsGJZxP8CpH47mpAV/j8vpL1zpz0TQALUlScJisVXuR6JX9Ko +cNBYDAJBZRibf1dxXhnw9bO23wH0OBjI3R2lnMqR9ac4qUNdfmnwI82MdLVTfjqt +/qHjtDigBe7s8B41Kd47GpN0TX3iLNk= +-----END CERTIFICATE----- diff --git a/.ci/tcg-rim-tool/certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem b/.ci/tcg-rim-tool/certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem new file mode 100644 index 00000000..cab34267 --- /dev/null +++ b/.ci/tcg-rim-tool/certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem @@ -0,0 +1,30 @@ +-----BEGIN CERTIFICATE----- +MIIFFjCCA36gAwIBAgIBBTANBgkqhkiG9w0BAQwFADBpMQswCQYDVQQGEwJVUzEL +MAkGA1UECAwCT1IxEjAQBgNVBAcMCUJlYXZlcnRvbjEQMA4GA1UECgwHUENfT0VN +MTEnMCUGA1UEAwweUENfT0VNMSByc2EgM2sgc2hhMzg0IHRlc3QgY2EyMB4XDTIz +MTExNTEzNDg1OFoXDTMzMTExMjEzNDg1OFowbDELMAkGA1UEBhMCVVMxCzAJBgNV +BAgMAk9SMRIwEAYDVQQHDAlCZWF2ZXJ0b24xEDAOBgNVBAoMB1BDX09FTTExKjAo +BgNVBAMMIVBDX09FTTEgcnNhIDNrIHNoYTM4NCB0ZXN0IHNpZ25lcjCCAaIwDQYJ +KoZIhvcNAQEBBQADggGPADCCAYoCggGBAMxAQFXRvU6j9OckLcQnHeFlHKoxstdN +72B5qhr/vvsQ1ZnP9cTTA6zNttCf+rpERtiQb1uIOhEhyEV0A45KYpPt7UrILsyT +drkaj5dq4oD8pq+STzvP2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4Zm4R3zyiQw8zay6 +TEDdWE9/uWoZxcYTugQ3nBikEMqxldTWdpL5aSyn9Dv8btotgiekllw4knucS2sI +kgOeczYCLfYn9yaykCy4so2Zwb8/YSEvnpcbV99RbT/B0YyBR04I3FWlXzVd9wEO ++O8u6rNxap99cA== +-----END CERTIFICATE----- diff --git a/.ci/tcg-rim-tool/certs/PC_OEM2_Cert_Chain.pem b/.ci/tcg-rim-tool/certs/PC_OEM2_Cert_Chain.pem new file mode 100644 index 00000000..68379c2b --- /dev/null +++ b/.ci/tcg-rim-tool/certs/PC_OEM2_Cert_Chain.pem @@ -0,0 +1,120 @@ +-----BEGIN CERTIFICATE----- +MIIFHzCCA4egAwIBAgIBAjANBgkqhkiG9w0BAQwFADB1MQswCQYDVQQGEwJVUzEL +MAkGA1UECAwCT1IxEjAQBgNVBAcMCUJlYXZlcnRvbjEQMA4GA1UECgwHUENfT0VN +MjEzMDEGA1UEAwwqUENfT0VNMiByc2EgM2sgc2hhMzg0IHRlc3QgaW50ZXJtZWRp +YXRlIGNhMB4XDTIzMTExNTEzNDkxMloXDTMzMTExMjEzNDkxMlowaTELMAkGA1UE +BhMCVVMxCzAJBgNVBAgMAk9SMRIwEAYDVQQHDAlCZWF2ZXJ0b24xEDAOBgNVBAoM +B1BDX09FTTIxJzAlBgNVBAMMHlBDX09FTTIgcnNhIDNrIHNoYTM4NCB0ZXN0IGNh +MTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALPcqlYoY669l3hekmoM +G8cOLLFCyFyJV2qoJquCVXwxRt122cUafRsUTWyWPqm208N8B8S2wo1wxRgFhrpn +DgFlrd6UXCgWZhlmrn3Uky1zaa4f/6l1XVUEQS6nkLuE1QAEZYdXWn1TWFDW8Te0 +omkIbQgFsgjxOB4fYrbzkS0TTrfmZJYMZnTOsDLqS2Eza7hSObkDYYu2Pgo6P/oK +HH8RkpKfTSvcrBvcFkjl78EQK5/49/1ixApvWlC3EYeJ7mPHUizDW7jnqttoW0C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EX2fAtz2mxOExANZcXyn/LtLD0VhWWMMvuzzudmv27yMQ +1ZF7opqFdCnN8/5X7V6i8gC9g2Us0+R3SQ9HhXRMo3yhM0xw0Q1Yk2Xp+v4pGptJ +3LULIOyo+T7OztjebzQQrlxGNIjUni4m6/CD39pNp+CX4Q== +-----END CERTIFICATE----- diff --git a/.ci/tcg-rim-tool/certs/PC_OEM2_rim_signer_rsa_3k_sha384.pem b/.ci/tcg-rim-tool/certs/PC_OEM2_rim_signer_rsa_3k_sha384.pem new file mode 100644 index 00000000..6f785759 --- /dev/null +++ b/.ci/tcg-rim-tool/certs/PC_OEM2_rim_signer_rsa_3k_sha384.pem @@ -0,0 +1,30 @@ +-----BEGIN CERTIFICATE----- +MIIFFjCCA36gAwIBAgIBBTANBgkqhkiG9w0BAQwFADBpMQswCQYDVQQGEwJVUzEL +MAkGA1UECAwCT1IxEjAQBgNVBAcMCUJlYXZlcnRvbjEQMA4GA1UECgwHUENfT0VN +MjEnMCUGA1UEAwweUENfT0VNMiByc2EgM2sgc2hhMzg0IHRlc3QgY2EyMB4XDTIz +MTExNTEzNDkxNFoXDTMzMTExMjEzNDkxNFowbDELMAkGA1UEBhMCVVMxCzAJBgNV +BAgMAk9SMRIwEAYDVQQHDAlCZWF2ZXJ0b24xEDAOBgNVBAoMB1BDX09FTTIxKjAo +BgNVBAMMIVBDX09FTTIgcnNhIDNrIHNoYTM4NCB0ZXN0IHNpZ25lcjCCAaIwDQYJ +KoZIhvcNAQEBBQADggGPADCCAYoCggGBANSmP8wkFWhfY2f4q+T0WR+15gfV5Xz1 +PYczfW/OrXFhC/QUFQds/MQaV/nJdSG5ZGnHAL8N8rKkD8zfIpVDHpSCcve69fBy +Ki/OznZ2aVfYQnz/D4evWZx2D+5v4sj6rphiKKIsdNTslx/wRFhGrdJD1PwzDf5W +zGDNm2FSylSOC9icMsHyiRtMb+hVVGixccqjXH7fbReI8iN86Kk3XWBEY52CEVzO +d1E4aBibCqUNT3Vti+K1dD1bpi8c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lDtqDxyiWf +EOcwMEB04igXOA== +-----END CERTIFICATE----- diff --git a/.ci/tcg-rim-tool/configs/Base_Rim_Config.json b/.ci/tcg-rim-tool/configs/Base_Rim_Config.json new file mode 100644 index 00000000..3e45fdcd --- /dev/null +++ b/.ci/tcg-rim-tool/configs/Base_Rim_Config.json @@ -0,0 +1,53 @@ +{ + "SoftwareIdentity": { + "name": "Example.com BIOS", + "version": "01", + "tagId": "94f6b457-9ac9-4d35-9b3f-78804173b65as", + "tagVersion": "0", + "patch": false, + "supplemental": false + }, + "Entity": { + "name": "Example Inc", + "regid": "http://Example.com", + "role": "softwareCreator,tagCreator" + }, + "Link": { + "href": "https://Example.com/support/ProductA/firmware/installfiles", + "rel": "installationmedia" + }, + "Meta": { + "colloquialVersion": "Firmware_2019", + "edition": "12", + "product": "ProductA", + "revision": "r2", + "payloadType": "direct", + "platformManufacturerStr": "Example.com", + "platformManufacturerId": "00201234", + "platformModel": "ProductA", + "platformVersion": "01", + "firmwareManufacturerStr": "BIOSVendorA", + "firmwareManufacturerId": "00213022", + "firmwareModel": "A0", + "firmwareVersion": "12", + "bindingSpec": "PC Client RIM", + "bindingSpecVersion": "1.2", + "pcURIlocal": "/boot/tcg/manifest/switag/", + "pcURIGlobal": "https://Example.com/support/ProductA/" + }, + "Payload": { + "supportRIMURIGlobal": "https://Example.com/support/ProductA/firmware/rims/", + "supportRIMFormat":"TCG_EventLog_Assertion", + "Directory": { + "name": "rim", + "root": "/boot/tcg/manifest/rim/", + "File": { + "version":"01", + "name": "Example.com.BIOS.01.rimel", + "size": "7549", + "hash": "4479ca722623f8c47b703996ced3cbd981b06b1ae8a897db70137e0b7c546848" + } + } + } +} + diff --git a/.ci/tcg-rim-tool/configs/Component1_Rim_Config.json b/.ci/tcg-rim-tool/configs/Component1_Rim_Config.json new file mode 100644 index 00000000..085f2b6f --- /dev/null +++ b/.ci/tcg-rim-tool/configs/Component1_Rim_Config.json @@ -0,0 +1,54 @@ +{ + "SoftwareIdentity": { + "name": "Example.com BIOS", + "version": "01", + "tagId": "94f6b457-9ac9-4d35-9b3f-78804173b65as", + "tagVersion": "0", + "patch": false, + "supplemental": false + }, + "Entity": { + "name": "Example Inc", + "regid": "http://Example.com", + "role": "softwareCreator,tagCreator" + }, + "Link": { + "href": "https://Example.com/support/ProductA/firmware/installfiles", + "rel": "installationmedia" + }, + "Meta": { + "colloquialVersion": "Firmware_2019", + "edition": "12", + "product": "ProductA", + "revision": "r2", + "PayloadType": "direct", + "platformManufacturerStr": "Example.com", + "platformManufacturerId": "00201234", + "platformModel": "ProductA", + "platformVersion": "01", + "firmwareManufacturerStr": "BIOSVendorA", + "firmwareManufacturerId": "00213022", + "firmwareModel": "A0", + "firmwareVersion": "12", + "bindingSpec": "PC Client RIM", + "bindingSpecVersion": "1.2", + "pcURIlocal": "/boot/tcg/manifest/switag/", + "pcURIGlobal": "https://Example.com/support/ProductA/" + }, + "Payload": { + "supportRIMURIGlobal": "https://Example.com/support/ProductA/firmware/rims/", + "supportRIMFormat":"TCG_EventLog_Assertion", + "supportRimType": "BaseRim", + "Directory": { + "name": "rim", + "root": "/boot/tcg/manifest/rim/", + "File": { + "version":"01", + "name": "Example.com.BIOS.01.rimel", + "size": "7549", + "hash": "4479ca722623f8c47b703996ced3cbd981b06b1ae8a897db70137e0b7c546848" + } + } + } +} + diff --git a/.ci/tcg-rim-tool/configs/Patch_RIM_Config.json b/.ci/tcg-rim-tool/configs/Patch_RIM_Config.json new file mode 100644 index 00000000..d5916dae --- /dev/null +++ b/.ci/tcg-rim-tool/configs/Patch_RIM_Config.json @@ -0,0 +1,53 @@ +{ + "SoftwareIdentity": { + "name": "Example.com BIOS", + "version": "01", + "tagId": "94f6b457-9ac9-4d35-9b3f-78804173b65as", + "tagVersion": "0", + "patch": true, + "supplemental": false + }, + "Entity": { + "name": "Example Inc", + "regid": "http://Example.com", + "role": "softwareCreator,tagCreator" + }, + "Link": { + "href": "c30e60f5261620320a176a5f265e231409447cf25c685111cb39648d027420c5", + "rel": "requires" + }, + "Meta": { + "colloquialVersion": "Firmware_2019", + "edition": "12", + "product": "ProductA", + "revision": "r2", + "PayloadType": "direct", + "platformManufacturerStr": "Example.com", + "platformManufacturerId": "00201234", + "platformModel": "ProductA", + "platformVersion": "01", + "firmwareManufacturerStr": "BIOSVendorA", + "firmwareManufacturerId": "00213022", + "firmwareModel": "A0", + "firmwareVersion": "12", + "bindingSpec": "PC Client RIM", + "bindingSpecVersion": "1.2", + "pcURIlocal": "/boot/tcg/manifest/switag/", + "pcURIGlobal": "https://Example.com/support/ProductA/" + }, + "Payload": { + "supportRIMURIGlobal": "https://Example.com/support/ProductA/firmware/rims/", + "supportRIMFormat":"TCG_EventLog_Assertion", + "Directory": { + "name": "rim", + "root": "/boot/tcg/manifest/rim/", + "File": { + "version":"01", + "name": "Example.com.BIOS.01.rimel", + "size": "7549", + "hash": "4479ca722623f8c47b703996ced3cbd981b06b1ae8a897db70137e0b7c546848" + } + } + } +} + diff --git a/.ci/tcg-rim-tool/configs/Primary_Rim_Config.json b/.ci/tcg-rim-tool/configs/Primary_Rim_Config.json new file mode 100644 index 00000000..085f2b6f --- /dev/null +++ b/.ci/tcg-rim-tool/configs/Primary_Rim_Config.json @@ -0,0 +1,54 @@ +{ + "SoftwareIdentity": { + "name": "Example.com BIOS", + "version": "01", + "tagId": "94f6b457-9ac9-4d35-9b3f-78804173b65as", + "tagVersion": "0", + "patch": false, + "supplemental": false + }, + "Entity": { + "name": "Example Inc", + "regid": "http://Example.com", + "role": "softwareCreator,tagCreator" + }, + "Link": { + "href": "https://Example.com/support/ProductA/firmware/installfiles", + "rel": "installationmedia" + }, + "Meta": { + "colloquialVersion": "Firmware_2019", + "edition": "12", + "product": "ProductA", + "revision": "r2", + "PayloadType": "direct", + "platformManufacturerStr": "Example.com", + "platformManufacturerId": "00201234", + "platformModel": "ProductA", + "platformVersion": "01", + "firmwareManufacturerStr": "BIOSVendorA", + "firmwareManufacturerId": "00213022", + "firmwareModel": "A0", + "firmwareVersion": "12", + "bindingSpec": "PC Client RIM", + "bindingSpecVersion": "1.2", + "pcURIlocal": "/boot/tcg/manifest/switag/", + "pcURIGlobal": "https://Example.com/support/ProductA/" + }, + "Payload": { + "supportRIMURIGlobal": "https://Example.com/support/ProductA/firmware/rims/", + "supportRIMFormat":"TCG_EventLog_Assertion", + "supportRimType": "BaseRim", + "Directory": { + "name": "rim", + "root": "/boot/tcg/manifest/rim/", + "File": { + "version":"01", + "name": "Example.com.BIOS.01.rimel", + "size": "7549", + "hash": "4479ca722623f8c47b703996ced3cbd981b06b1ae8a897db70137e0b7c546848" + } + } + } +} + diff --git a/.ci/tcg-rim-tool/configs/Supplemental_Rim_Config.json b/.ci/tcg-rim-tool/configs/Supplemental_Rim_Config.json new file mode 100644 index 00000000..1762b829 --- /dev/null +++ b/.ci/tcg-rim-tool/configs/Supplemental_Rim_Config.json @@ -0,0 +1,53 @@ +{ + "SoftwareIdentity": { + "name": "Example.com BIOS", + "version": "01", + "tagId": "94f6b457-9ac9-4d35-9b3f-78804173b65as", + "tagVersion": "0", + "patch": false, + "supplemental": true + }, + "Entity": { + "name": "Example Inc", + "regid": "http://Example.com", + "role": "softwareCreator,tagCreator" + }, + "Link": { + "href": "c30e60f5261620320a176a5f265e231409447cf25c685111cb39648d027420c5", + "rel": "requires" + }, + "Meta": { + "colloquialVersion": "Firmware_2019", + "edition": "12", + "product": "ProductA", + "revision": "r2", + "PayloadType": "direct", + "platformManufacturerStr": "Example.com", + "platformManufacturerId": "00201234", + "platformModel": "ProductA", + "platformVersion": "01", + "firmwareManufacturerStr": "BIOSVendorA", + "firmwareManufacturerId": "00213022", + "firmwareModel": "A0", + "firmwareVersion": "12", + "bindingSpec": "PC Client RIM", + "bindingSpecVersion": "1.2", + "pcURIlocal": "/boot/tcg/manifest/switag/", + "pcURIGlobal": "https://Example.com/support/ProductA/" + }, + "Payload": { + "supportRIMURIGlobal": "https://Example.com/support/ProductA/firmware/rims/", + "supportRIMFormat":"TCG_EventLog_Assertion", + "Directory": { + "name": "rim", + "root": "/boot/tcg/manifest/rim/", + "File": { + "version":"01", + "name": "Example.com.BIOS.01.rimel", + "size": "7549", + "hash": "4479ca722623f8c47b703996ced3cbd981b06b1ae8a897db70137e0b7c546848" + } + } + } +} + diff --git a/.ci/tcg-rim-tool/eventlogs/TpmLog.bin b/.ci/tcg-rim-tool/eventlogs/TpmLog.bin new file mode 100644 index 0000000000000000000000000000000000000000..0b8f1f398d51035bc91afbe8400d4888a28d5669 GIT binary patch literal 7549 zcmds53p`a>+h2!6H)=?dq+LukI^;4cmCNBAxieB{D&BHAZX@U9mIif5nUNZairneu zQp}Wyq6@02K{H)mgj^eyq^o4S&)WN_P+#Ny=J)&heQW>rUhAyAp6CC6*7K~jo_!EP zNEGf5m08fag3om(Oj!gwfa~q2u0;(KK_WD0O+Wlph?h|Ve9UlZ!23O^DykICyO6^xhF!iW#)@Hjb%6?P>>0o5n5keZ!_oTo4uA#OWU*I))Mz&c4)|qjT%7^|5Zq<|bFwt~%T4 zG-1d1*mE~erw5%;uoStY4Wk_!TX$aFdqXNq5;YwVogXzGqeH<2a9M%4$Qk(~AE*rx z4=z81hQc%)DI9-liEdW9rTrx@mwT^M`bB+HqOw=ty zu}$$W2wOVf`9#FbideWY@vhyjWhL{UH0<8;tojkH*Sr_A9juwjPK7CK(#1b5-$)?; zFYkD+(8v#b*)2Z3si(Q*UgDBo3m7d&{P8VRsOh8_uHF`gutgsugBZ<^3e+23vx~=F zB^a`Hr|IG{NWSIXl%$k!i?BX<{?@V=OScZt(NOf?4}R6*Cw1j|L2g%Z3%7J#T&QHi z&Oe)r^#^}j(EBg{{h7+zrtPGsM%5AjeMiN5+_%)y4h(vV*+`Janh!?bEa z$%-KlwX9AQ|J&nG>Vqj1`c2aI^#z0TM;ZMo+dCINOPiba$|^2cV6vX~fH-np9g zOZg&=-tChLo}gO+v|qDpcy`A7J7TYUSY0=GMxv{?QRs4`LywU~_8Y|W*u~oucQ$&B zWsgMHX19xA>kmv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mp +mkdir -p tmp +#rim create +rim -c base -a ../configs/Base_Rim_Config.json -l ../eventlogs/TpmLog.bin -k ../keys/PC_OEM1_rim_signer_rsa_3k_sha384.key -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem -o tmp/noCert.swidtag +rim_create_status $? + +# rim verify without cert chain +rim -v tmp/noCert.swidtag -l ../eventlogs/TpmLog.bin -t ../certs/PC_OEM1_Cert_Chain.pem +rim_verify_fail_test $? + +#Return to where ever you came from +popd > /dev/null \ No newline at end of file diff --git a/.ci/tcg-rim-tool/scripts/bindingSpecprimary_rim_noconfig_fail.sh b/.ci/tcg-rim-tool/scripts/bindingSpecprimary_rim_noconfig_fail.sh new file mode 100755 index 00000000..e869c724 --- /dev/null +++ b/.ci/tcg-rim-tool/scripts/bindingSpecprimary_rim_noconfig_fail.sh @@ -0,0 +1,14 @@ +#!/bin/bash +#test rim create with no config file. +# Capture location of this script to allow from invocation from any location +scriptDir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")") +# go to the script directory so everything runs smoothly ... +pushd $scriptDir > /dev/null + +. ./rim_functions.sh +#rim create +rim -c base -l ../eventlog/TpmLog.bin -k ../keys/PC_OEM1_rim_signer_rsa_3k_sha384.key -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem -o noConfig.swidtag +rim_create_fail_test $? + +#Return to where ever you came from +popd > /dev/null \ No newline at end of file diff --git a/.ci/tcg-rim-tool/scripts/composite_rim_create_pass.sh b/.ci/tcg-rim-tool/scripts/composite_rim_create_pass.sh new file mode 100755 index 00000000..a73af52b --- /dev/null +++ b/.ci/tcg-rim-tool/scripts/composite_rim_create_pass.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# Composite rim create pass test +# Capture location of this script to allow from invocation from any location +scriptDir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")") +# go to the script directory so everything runs smoothly ... +pushd $scriptDir > /dev/null + +. ./rim_functions.sh +#clearing and creating a new tmp folder +rm -rf tmp +mkdir -p tmp + +failCount=0 +# primary rim create +rim -c base -a ../configs/Primary_Rim_Config.json -l ../eventlogs/TpmLog.bin -k ../keys/PC_OEM1_rim_signer_rsa_3k_sha384.key -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem -o tmp/primaryRimFile.swidtag +rim_create_status $? + +# verify primary rim +rim -v tmp/primaryRimFile.swidtag -l ../eventlogs/TpmLog.bin -t ../certs/PC_OEM1_Cert_Chain.pem -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem +rim_verify_status $? + +# comp rim create +rim -c base -a ../configs/Component1_Rim_Config.json -l ../eventlogs/TpmLog2.bin -k ../keys/COMP_OEM1_rim_signer_rsa_3k_sha384.key -p ../certs/COMP_OEM1_rim_signer_rsa_3k_sha384.pem -o tmp/compRimFile.swidtag +rim_create_status $? + +# verify comp rim +rim -v tmp/compRimFile.swidtag -l ../eventlogs/TpmLog2.bin -t ../certs/COMP_OEM1_Cert_Chain.pem -p ../certs/COMP_OEM1_rim_signer_rsa_3k_sha384.pem +rim_verify_status $? + +#Return to where ever you came from +popd > /dev/null + +if [ $failCount -eq 0 ]; then + echo "Expected Result (PASS) Result: PASS, primaryRimFile.swidtag has a new base rim file signed by PC_OEM1_rim_signer_rsa_3k_sha384.key" + echo "Expected Result (PASS) Result: PASS, compRimFile.swidtag has a new base rim file signed by COMP_OEM1_rim_signer_rsa_3k_sha384.key" +else + echo "Expected Result (PASS) Result: FAILED, exit status $failCount" +fi +exit $failCount + diff --git a/.ci/tcg-rim-tool/scripts/patch_rim_create_pass.sh b/.ci/tcg-rim-tool/scripts/patch_rim_create_pass.sh new file mode 100755 index 00000000..355d3e87 --- /dev/null +++ b/.ci/tcg-rim-tool/scripts/patch_rim_create_pass.sh @@ -0,0 +1,33 @@ +#!/bin/bash +#Creates and Verifies a Patch RIM. Needs to refer to the Primary RIM created in previous test. +# Capture location of this script to allow from invocation from any location +scriptDir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")") +# go to the script directory so everything runs smoothly ... +pushd $scriptDir > /dev/null + +. ./rim_functions.sh +#clearing and creating a new tmp folder +rm -rf tmp +mkdir -p tmp +#declares failCount as number of failure tests that are not working as they should +#Exit 1: Rim Create failure +#Exit 2: Rim verify failure +failCount=0 +# rim create +rim -c base -a ../configs/Patch_RIM_Config.json -l ../eventlogs/TpmLog2.bin -k ../keys/PC_OEM1_rim_signer_rsa_3k_sha384.key -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem -o tmp/patchRimFile.swidtag +rim_create_status $? + +# RIM verify +rim -v tmp/patchRimFile.swidtag -t ../certs/PC_OEM1_Cert_Chain.pem -l ../eventlogs/TpmLog2.bin -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem +rim_verify_status $? + +#Return to where ever you came from +popd > /dev/null + +#Exit status with message +if [ $failCount -eq 0 ]; then + echo "Expected Result (PASS) Result: PASS, patchRimFile.swidtag has a new base rim file signed by PC_OEM1_rim_signer_rsa_3k_sha384.key" +else + echo "Expected Result (PASS) Result: FAILED, exit status $failCount" +fi +exit $failCount \ No newline at end of file diff --git a/.ci/tcg-rim-tool/scripts/primary_rim_create_pass.sh b/.ci/tcg-rim-tool/scripts/primary_rim_create_pass.sh new file mode 100755 index 00000000..8a939e05 --- /dev/null +++ b/.ci/tcg-rim-tool/scripts/primary_rim_create_pass.sh @@ -0,0 +1,37 @@ +#!/bin/bash +#This test creates and verifies a single Primary RIM +# Capture location of this script to allow from invocation from any location +scriptDir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")") +# go to the script directory so everything runs smoothly ... +pushd $scriptDir > /dev/null + +. ./rim_functions.sh +#clearing and creating a new tmp folder +rm -rf tmp +mkdir -p tmp + +#declares failCount as number of failure tests that are not working as they should +#Exit 1: Rim Create failure +#Exit 2: Rim verify failure +failCount=0 +# creating a base rim and checking exit status +rim -c base -a ../configs/Base_Rim_Config.json -l ../eventlogs/TpmLog.bin -k ../keys/PC_OEM1_rim_signer_rsa_3k_sha384.key -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem -o tmp/baseRimFile.swidtag +rim_create_status $? + +# RIM verify and checking exit status +rim -v tmp/baseRimFile.swidtag -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem -t ../certs/PC_OEM1_Cert_Chain.pem -l ../eventlogs/TpmLog.bin +rim_verify_status $? + +#Return to where ever you came from +popd > /dev/null + +#script exit status +if [ $failCount -eq 0 ]; then + echo "Expected Result (PASS) Result: PASS, baseRimFile.swidtag has a new base rim file signed by PC_OEM1_rim_signer_rsa_3k_sha384.key" +else + echo "Expected Result (PASS) Result: FAILED, exit status $failCount" +fi +exit $failCount + + + diff --git a/.ci/tcg-rim-tool/scripts/primary_rim_embedd_pass.sh b/.ci/tcg-rim-tool/scripts/primary_rim_embedd_pass.sh new file mode 100755 index 00000000..d7658103 --- /dev/null +++ b/.ci/tcg-rim-tool/scripts/primary_rim_embedd_pass.sh @@ -0,0 +1,34 @@ +#!/bin/bash +#Test the option to embed a certificate into the swidtag +# Capture location of this script to allow from invocation from any location +scriptDir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")") +# go to the script directory so everything runs smoothly ... +pushd $scriptDir > /dev/null + +. ./rim_functions.sh +#clearing and creating a new tmp folder +rm -rf tmp +mkdir -p tmp + +#declares failCount as number of failure tests that are not working as they should +#Exit 1: Rim Create failure +#Exit 2: Rim verify failure +failCount=0 +#rim create, -e flag fails? Bouncy Castle error... +rim -c base -a ../configs/Base_Rim_Config.json -l ../eventlogs/TpmLog.bin -k ../keys/PC_OEM1_rim_signer_rsa_3k_sha384.key -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem -e -o tmp/primary_embedd.swidtag +rim_create_status $? + +#rim verify. +rim -v tmp/primary_embedd.swidtag -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem -l ../eventlogs/TpmLog.bin -t ../certs/PC_OEM1_RSA_Cert_Chain.pem +rim_verify_status $? + +#Return to where ever you came from +popd > /dev/null + +#Exit status with message +if [ $failCount -eq 0 ]; then + echo "Expected Result (PASS) Result: PASS, patchRimFile.swidtag has a new base rim file signed by PC_OEM1_rim_signer_rsa_3k_sha384.key" +else + echo "Expected Result (PASS) Result: FAILED, exit status $failCount" +fi +exit $failCount \ No newline at end of file diff --git a/.ci/tcg-rim-tool/scripts/primary_rim_noeventlog_fail.sh b/.ci/tcg-rim-tool/scripts/primary_rim_noeventlog_fail.sh new file mode 100755 index 00000000..2487d766 --- /dev/null +++ b/.ci/tcg-rim-tool/scripts/primary_rim_noeventlog_fail.sh @@ -0,0 +1,14 @@ +#!/bin/bash +#Test for a missing event log +# Capture location of this script to allow from invocation from any location +scriptDir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")") +# go to the script directory so everything runs smoothly ... +pushd $scriptDir > /dev/null + +. ./rim_functions.sh +#rim create +rim -c base -a ../configs/Base_Rim_Config.json -k ../keys/PC_OEM1_rim_signer_rsa_3k_sha384.key -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem -o noEventlog.swidtag +rim_create_fail_test $? + +#Return to where ever you came from +popd > /dev/null \ No newline at end of file diff --git a/.ci/tcg-rim-tool/scripts/primary_rim_nokey_fail.sh b/.ci/tcg-rim-tool/scripts/primary_rim_nokey_fail.sh new file mode 100755 index 00000000..ace180e9 --- /dev/null +++ b/.ci/tcg-rim-tool/scripts/primary_rim_nokey_fail.sh @@ -0,0 +1,14 @@ +#!/bin/bash +#Tests for a missing key +# Capture location of this script to allow from invocation from any location +scriptDir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")") +# go to the script directory so everything runs smoothly ... +pushd $scriptDir > /dev/null + +. ./rim_functions.sh +#rim create +rim -c base -a ../configs/Base_Rim_Config.json -l ../eventlogs/TpmLog.bin -p ../certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem -o baseRimFile.swidtag +rim_create_fail_test $? + +#Return to where ever you came from +popd > /dev/null \ No newline at end of file diff --git a/.ci/tcg-rim-tool/scripts/rim_functions.sh b/.ci/tcg-rim-tool/scripts/rim_functions.sh new file mode 100755 index 00000000..55947556 --- /dev/null +++ b/.ci/tcg-rim-tool/scripts/rim_functions.sh @@ -0,0 +1,132 @@ +#!/bin/bash +#Rim system test support functions. +#exit status functions for rim create and rim verify. +rim_create_status(){ + if [ $1 -eq 0 ]; then + echo "********" + echo "RIM create passed, attempting to verify the signature on base rim file..." + echo "********" + else + echo "********" + echo "FAILED: rim creation failed" + echo "********" + ((failCount++)) + fi +} + +rim_verify_status(){ + if [ $1 -eq 0 ]; then + echo "********" + echo "RIM Verify passed!" + #echo "********" + else + echo "********" + echo "FAILED: rim verify failed" + #echo "********" + ((failCount++)) + fi +} + +rim_create_fail_test(){ + if [ $1 -ne 0 ]; then + echo "********" + echo "PASSED: RIM create FAILED as expected." + #echo "********" + exit 0 + else + echo "********" + echo "FAILED: RIM create PASSED expected FAIL." + #echo "********" + exit 1 + fi +} + +rim_verify_fail_test(){ + if [ $1 -ne 0 ]; then + echo "********" + echo "PASSED: RIM verify FAILED as expected." + #echo "********" + exit 0 + else + echo "********" + echo "FAILED: RIM verify PASSED expected FAIL." + #echo "********" + exit 1 + fi +} + +check_req_attributes() { + local element="$1" + shift + local attributes=("$@") + for attribute in "${attributes[@]}"; do + ((num_tests++)) + if grep -q "$element.*$attribute=" "$BASE_RIM"; then + echo "The $element element HAS the REQUIRED '$attribute' attribute." + ((num_tests_pass++)) + else + echo -e "\033[31mError: The $element element is MISSING the REQUIRED '$attribute' attribute.\033[0m" + exitStatus=1 + fi + done +} + +check_opt_attributes() { + local element="$1" + shift + local attributes=("$@") + for attribute in "${attributes[@]}"; do + if grep -q "$element.*$attribute=" "$BASE_RIM"; then + echo "The $element element HAS the OPTIONAL '$attribute' attribute." + else + echo -e "\033[33mThe $element element is MISSING the OPTIONAL '$attribute' attribute.\033[0m" + fi + done +} + +check_element() { + local element="$1" + ((num_tests++)) + if grep -q "$1" "$BASE_RIM"; then + echo "************" + echo "$element element exists checking for REQUIRED attributes... " + ((num_tests_pass++)) + else + echo -e "\033[31mERROR: $element element is missing\033[0m" + exitStatus=1 + fi +} + +# checks parent tag for REQUIRED elements/attributes found in child tags. +check_tag_req(){ + local element="$1" + local tag_block="$2" + shift 2 + local attributes=("$@") + + for attribute in "${attributes[@]}"; do + ((num_tests++)) + if echo "$tag_block" | grep -q "$attribute"; then + echo "The $element element HAS the REQUIRED '$attribute' attribute." + ((num_tests_pass++)) + else + echo -e "\033[31mError: The $element element is MISSING the REQUIRED '$attribute' attribute.\033[0m" + exitStatus=1 + fi + done +} +# checks parent tag for OPTIONAL elements/attributes found in child tags. +check_tag_opt(){ + local element="$1" + local tag_block="$2" + shift 2 + local attributes=("$@") + + for attribute in "${attributes[@]}"; do + if echo "$tag_block" | grep -q "$attribute"; then + echo "The $element element HAS the REQUIRED '$attribute' attribute." + else + echo -e "\033[33mThe $element element is MISSING the OPTIONAL '$attribute' attribute.\033[0m" + fi + done +} \ No newline at end of file diff --git a/.ci/tcg-rim-tool/scripts/run_all_tests.sh b/.ci/tcg-rim-tool/scripts/run_all_tests.sh new file mode 100755 index 00000000..a953b60d --- /dev/null +++ b/.ci/tcg-rim-tool/scripts/run_all_tests.sh @@ -0,0 +1,89 @@ +#!/bin/bash +# This script will run all the tests in rim/scrips directory. it will ignore specified files. +# counters that will provide information about the script status. +testsFailed=0 +testsPassed=0 +testsRan=0 +# Capture location of this script to allow from invocation from any location +scriptDir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")") +# go to the script directory so everything runs smoothly ... +pushd $scriptDir > /dev/null + + +# adding the verbose option. +while [[ $# -gt 0 ]]; do + case $1 in + '-v'|'--verbose') + ARG_VERBOSE=YES + echo "verbose parameters" + shift # past argument + ;; + '-*'|'--*') + echo "Unknown option $1" + exit 1 + ;; + *) + echo "Unknown argument $1" + exit 1 + shift # past argument + ;; + esac +done + +#List of files in the scripts directory to ignore. +exclude=("run_all_tests.sh" "rim_functions.sh") + +#loop through the test/rim/scripts directory +for script in *.sh; do + #ignoring specified (non test) files. + if [[ ! "${exclude[*]}" =~ $script ]]; then + ((testsRan++)) + echo "" + echo "----------------" + echo "RUNNING $script" + + if [ -n "$ARG_VERBOSE" ]; then + ./"$script" + else + ./"$script" >/dev/null + fi + + #checking the exit stats of the script (test). + if [ $? -eq 0 ];then + if [ -z "$ARG_VERBOSE" ]; then + echo "PASSED $script" + fi + echo "----------------" + ((testsPassed++)) + else + if [ -z "$ARG_VERBOSE" ]; then + echo -e "\033[31mFAILED $script\033[0m" + fi + echo "----------------" + ((testsFailed++)) + fi + else + echo "" + echo "----------------" + echo "skipping $script" + echo "----------------" + fi + +done + +#return to whatever directory you started at +popd > /dev/null + +#test results +echo "" +echo "**** Test Results *****" +echo "Number of tests ran = $testsRan" +echo "Number of tests passed = $testsPassed" +echo "Number of tests failed = $testsFailed" + +#tests status +if [ "$testsFailed" -eq 0 ]; then + exit 0 +else + exit 1 +fi \ No newline at end of file diff --git a/tools/tcg_rim_tool/build.gradle b/tools/tcg_rim_tool/build.gradle index eeb324e4..5dff4dba 100644 --- a/tools/tcg_rim_tool/build.gradle +++ b/tools/tcg_rim_tool/build.gradle @@ -140,7 +140,21 @@ task buildZip(type: Zip){ from('./build/resources/test/rim_fields.json'){ into '/' } - + from('../../.ci/tcg-rim-tool/configs/Base_Rim_Config.json'){ + into '/' + } + from('../../.ci/tcg-rim-tool/eventlogs/TpmLog.bin'){ + into '/' + } + from('../../.ci/tcg-rim-tool/keys/PC_OEM1_rim_signer_rsa_3k_sha384.key'){ + into '/' + } + from('../../.ci/tcg-rim-tool/certs/PC_OEM1_rim_signer_rsa_3k_sha384.pem'){ + into '/' + } + from('../../.ci/tcg-rim-tool/certs/PC_OEM1_Cert_Chain.pem'){ + into '/' + } archiveBaseName.set(project.name) archiveExtension.set('zip') From c8ca3ad820f9b6d0185e4ba079ee1c8f473600b0 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Wed, 17 Jul 2024 11:00:50 -0400 Subject: [PATCH 15/26] adding eventlog Jar to the package --- .github/workflows/hirs_package_linux.yml | 2 ++ tools/tcg_eventlog_tool/build.gradle | 31 ++++++++++++------------ 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 4125312d..fbf15e86 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -45,7 +45,9 @@ jobs: cp HIRS_Utils/build/libs/*.jar artifacts/jars/. cp HIRS_Structs/build/libs/*.jar artifacts/jars/. cp tools/tcg_rim_tool/build/distributions/*.zip artifacts/win + cp tools/tcg_eventlog_tool/build/distributions/*.zip artifacts/win cp package/win/tcg-rim-tool/*.ps1 artifacts/win + - name: Archive RPM files uses: actions/upload-artifact@v4 with: diff --git a/tools/tcg_eventlog_tool/build.gradle b/tools/tcg_eventlog_tool/build.gradle index 8c19820a..1d6186bb 100644 --- a/tools/tcg_eventlog_tool/build.gradle +++ b/tools/tcg_eventlog_tool/build.gradle @@ -126,19 +126,18 @@ ospackage { } -// -//task buildZip(type: Zip){ -// dependsOn jar -// from(tasks.jar.archiveFile){ -// into '/' -// } -// -//// arch = 'win' -// // project_subproject-release version_data-git commit hash-arch.extension -// archiveBaseName.set(project.name + '-' + jarVersion) -// archiveExtension.set('zip') -// destinationDirectory.set(file("$buildDir/distributions")) -//} -// -//buildZip.dependsOn jar -////build.dependsOn buildZip \ No newline at end of file + +task buildZip(type: Zip){ + dependsOn jar + from(tasks.jar.archiveFile){ + into '/' + } + + + archiveBaseName.set(project.name) + archiveExtension.set('zip') + destinationDirectory.set(file("$buildDir/distributions")) +} + +buildZip.dependsOn jar +//build.dependsOn buildZip \ No newline at end of file From f712f2597f30934e97bb4b3a7b6af7141932802a Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Wed, 17 Jul 2024 14:27:26 -0400 Subject: [PATCH 16/26] fixed jar file name inside zip --- package/win/tcg-rim-tool/eventLog.ps1 | 2 +- package/win/tcg-rim-tool/hirsshell.ps1 | 3 +-- package/win/tcg-rim-tool/rim.ps1 | 2 +- tools/tcg_eventlog_tool/build.gradle | 5 +++-- tools/tcg_rim_tool/build.gradle | 5 ++++- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/package/win/tcg-rim-tool/eventLog.ps1 b/package/win/tcg-rim-tool/eventLog.ps1 index 7307cd50..552289c7 100644 --- a/package/win/tcg-rim-tool/eventLog.ps1 +++ b/package/win/tcg-rim-tool/eventLog.ps1 @@ -3,7 +3,7 @@ $JavaParams = @{ FilePath = 'java' ArgumentList = @( - '-jar "{0}"' -f "$PWD\tcg_eventlog_tool-2.1.3.jar" + '-jar "{0}"' -f "$PWD\tcg_eventlog_tool/tcg_eventlog_tool.jar" "$args" ) } diff --git a/package/win/tcg-rim-tool/hirsshell.ps1 b/package/win/tcg-rim-tool/hirsshell.ps1 index ae85c109..6b475e17 100644 --- a/package/win/tcg-rim-tool/hirsshell.ps1 +++ b/package/win/tcg-rim-tool/hirsshell.ps1 @@ -4,8 +4,7 @@ $StartInfo.FileName = "$pshome\powershell.exe" $StartInfo.Arguments = "-NoExit -Command `$Host.UI.RawUI.WindowTitle=`'TCG RIM TOOL`'; Set-Alias elt '$PWD\eventlog.ps1'; - Set-Alias rim '$PWD\rim.ps1'; - # function rim { java -jar 'tcg_rim_tool-2.1.0.jar' $args; }; + Set-Alias rim '$PWD\rim.ps1'; echo 'The TCG RIM TOOL is intended for testing TCG Defined PC Client Reference Integrity Manifests (RIMs)'; echo 'for usage type: rim -h'; echo 'for eventlog usage type: elt -h' diff --git a/package/win/tcg-rim-tool/rim.ps1 b/package/win/tcg-rim-tool/rim.ps1 index 75168c6a..986e2917 100644 --- a/package/win/tcg-rim-tool/rim.ps1 +++ b/package/win/tcg-rim-tool/rim.ps1 @@ -3,7 +3,7 @@ $JavaParams = @{ FilePath = 'java' ArgumentList = @( - '-jar "{0}"' -f "$PWD\tcg_rim_tool-2.1.0.jar" + '-jar "{0}"' -f "$PWD\tcg_rim_tool/tcg_rim_tool.jar" "$args" ) } diff --git a/tools/tcg_eventlog_tool/build.gradle b/tools/tcg_eventlog_tool/build.gradle index 1d6186bb..4de963e4 100644 --- a/tools/tcg_eventlog_tool/build.gradle +++ b/tools/tcg_eventlog_tool/build.gradle @@ -130,13 +130,14 @@ ospackage { task buildZip(type: Zip){ dependsOn jar from(tasks.jar.archiveFile){ + rename( filename -> + "${project.name}.jar") into '/' } - archiveBaseName.set(project.name) - archiveExtension.set('zip') destinationDirectory.set(file("$buildDir/distributions")) + archiveFileName.set("${project.name}.zip") } buildZip.dependsOn jar diff --git a/tools/tcg_rim_tool/build.gradle b/tools/tcg_rim_tool/build.gradle index 5dff4dba..92921f72 100644 --- a/tools/tcg_rim_tool/build.gradle +++ b/tools/tcg_rim_tool/build.gradle @@ -133,8 +133,11 @@ buildDeb { } task buildZip(type: Zip){ + dependsOn jar dependsOn jar from(tasks.jar.archiveFile){ + rename( filename -> + "${project.name}.jar") into '/' } from('./build/resources/test/rim_fields.json'){ @@ -157,8 +160,8 @@ task buildZip(type: Zip){ } archiveBaseName.set(project.name) - archiveExtension.set('zip') destinationDirectory.set(file("$buildDir/distributions")) + archiveFileName.set("${project.name}.zip") } buildZip.dependsOn jar From 06a46b1e0a7e1f02d631b6c60231fe22cb0d2809 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Wed, 17 Jul 2024 14:53:47 -0400 Subject: [PATCH 17/26] upgraded actions to latest versions --- .github/workflows/hirs_package_linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index fbf15e86..fc8190ab 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' @@ -32,7 +32,7 @@ jobs: sudo apt-get update sudo apt-get install git curl nano cron mariadb-server - name: Setup Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 - name: Execute Gradle build run: | ./gradlew build; From 061d865dec802119dcc805b8a280bd202ce2116c Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Tue, 23 Jul 2024 16:17:32 -0400 Subject: [PATCH 18/26] Added a README to tcg rim tool win package --- package/win/tcg-rim-tool/README.md | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 package/win/tcg-rim-tool/README.md diff --git a/package/win/tcg-rim-tool/README.md b/package/win/tcg-rim-tool/README.md new file mode 100644 index 00000000..01a827f5 --- /dev/null +++ b/package/win/tcg-rim-tool/README.md @@ -0,0 +1,38 @@ +This README is part of the ZIP_Files.zip generated from hirs_package_linux.yml the goal of this zip is to have the TCG RIM tool, and the TCG Eventlog tool available on windows. + +To get the tools working on windows follow the instructions below: + + +1- Unzip the main folder ("ZIP_Files"), followed by unzipping both the tcg_eventlog_tool.zip and tcg_rim_tool.zip in the working directory. + +2- Open PowerShell as administrator and run > Set-ExecutionPolicy unrestricted +To verify run > Get-ExecutionPolicy and it should be set to "unrestricted" + +3- Right click on create_hirs_desktop_shortcut.ps1 and run with PowerShell, a PowerShell terminal will pop-up, if prompted type "R" to run the script. + +4- HIRS_tools.ps1 should appear on your desktop, right click on it and run with PowerShell . if prompted type "R" to run the script. + +5- The HIRS terminal should popup. + +6- To remove the warning messages when running the rim tool and the event log tool: +Open PowerShell as administrator, navigate to the working directory, and run the following: +> Unblock-File -Path .\rim.ps1 +> Unblock-File -Path .\eventLog.ps1 + +To run the rim tool try the following commands + +> rim -c base -a .\tcg_rim_tool\Base_Rim_Config.json -l .\tcg_rim_tool\TpmLog.bin -k .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.key -p .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.pem -o baseRim.swidtag + +> rim -v .\baseRim.swidtag -p .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.pem -t .\tcg_rim_tool\PC_OEM1_Cert_Chain.pem -l .\tcg_rim_tool\TpmLog.bin + + + +To run the eventlog tool: + +elt -f C:\Windows\Logs\MeasuredBoot\[.log file here] -e + +Eventlog files are found here windows: +C:\Windows\Logs\MeasuredBoot + +Example Command would be: +> elt -f C:\Windows\Logs\MeasuredBoot\000000001-000000001.log -e (file name needs to match on on your system) \ No newline at end of file From 0737cbce20ed4ebaf84a8ab6e8f800c2cb3db4fd Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Wed, 24 Jul 2024 08:40:41 -0400 Subject: [PATCH 19/26] Added a README to tcg rim tool win package --- .github/workflows/hirs_package_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index fc8190ab..5818e337 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -46,7 +46,7 @@ jobs: cp HIRS_Structs/build/libs/*.jar artifacts/jars/. cp tools/tcg_rim_tool/build/distributions/*.zip artifacts/win cp tools/tcg_eventlog_tool/build/distributions/*.zip artifacts/win - cp package/win/tcg-rim-tool/*.ps1 artifacts/win + cp package/win/tcg-rim-tool/* artifacts/win - name: Archive RPM files uses: actions/upload-artifact@v4 From 6492ca831187fa03053e093e3e01b1bacb5c5be8 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Wed, 24 Jul 2024 09:31:03 -0400 Subject: [PATCH 20/26] Update README.md --- package/win/tcg-rim-tool/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/win/tcg-rim-tool/README.md b/package/win/tcg-rim-tool/README.md index 01a827f5..e7766200 100644 --- a/package/win/tcg-rim-tool/README.md +++ b/package/win/tcg-rim-tool/README.md @@ -1,11 +1,11 @@ -This README is part of the ZIP_Files.zip generated from hirs_package_linux.yml the goal of this zip is to have the TCG RIM tool, and the TCG Eventlog tool available on windows. +This README is part of the ZIP_Files.zip generated from hirs_package_linux.yml the goal of this zip is to have the TCG RIM tool, and the TCG Eventlog tool available on windows. -To get the tools working on windows follow the instructions below: +To get the tools working on windows follow the instructions below: -1- Unzip the main folder ("ZIP_Files"), followed by unzipping both the tcg_eventlog_tool.zip and tcg_rim_tool.zip in the working directory. +1- Unzip the main folder ("ZIP_Files"), followed by unzipping both the tcg_eventlog_tool.zip and tcg_rim_tool.zip in the working directory. \ -2- Open PowerShell as administrator and run > Set-ExecutionPolicy unrestricted +2- Open PowerShell as administrator and run > Set-ExecutionPolicy unrestricted
To verify run > Get-ExecutionPolicy and it should be set to "unrestricted" 3- Right click on create_hirs_desktop_shortcut.ps1 and run with PowerShell, a PowerShell terminal will pop-up, if prompted type "R" to run the script. @@ -35,4 +35,4 @@ Eventlog files are found here windows: C:\Windows\Logs\MeasuredBoot Example Command would be: -> elt -f C:\Windows\Logs\MeasuredBoot\000000001-000000001.log -e (file name needs to match on on your system) \ No newline at end of file +> elt -f C:\Windows\Logs\MeasuredBoot\000000001-000000001.log -e (file name needs to match on on your system) From 8d69f427fcf0d089decf35aa11c6a9a1fa344e6c Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Wed, 24 Jul 2024 13:47:52 -0400 Subject: [PATCH 21/26] Update README.md --- package/win/tcg-rim-tool/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package/win/tcg-rim-tool/README.md b/package/win/tcg-rim-tool/README.md index e7766200..26716d8d 100644 --- a/package/win/tcg-rim-tool/README.md +++ b/package/win/tcg-rim-tool/README.md @@ -1,11 +1,10 @@ -This README is part of the ZIP_Files.zip generated from hirs_package_linux.yml the goal of this zip is to have the TCG RIM tool, and the TCG Eventlog tool available on windows. +This README is part of the ZIP_Files.zip generated from hirs_package_linux.yml the goal of this zip is to have the TCG RIM tool, and the TCG Eventlog tool available on windows. To get the tools working on windows follow the instructions below: +1- Unzip the main folder ("ZIP_Files"), followed by unzipping both the tcg_eventlog_tool.zip and tcg_rim_tool.zip in the working directory. -1- Unzip the main folder ("ZIP_Files"), followed by unzipping both the tcg_eventlog_tool.zip and tcg_rim_tool.zip in the working directory. \ - -2- Open PowerShell as administrator and run > Set-ExecutionPolicy unrestricted
+2- Open PowerShell as administrator and run > Set-ExecutionPolicy unrestricted To verify run > Get-ExecutionPolicy and it should be set to "unrestricted" 3- Right click on create_hirs_desktop_shortcut.ps1 and run with PowerShell, a PowerShell terminal will pop-up, if prompted type "R" to run the script. From 350ce1aebd8c2c782c629c3698a52a65884ca409 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Wed, 24 Jul 2024 14:19:02 -0400 Subject: [PATCH 22/26] Create readme.txt --- package/win/tcg-rim-tool/readme.txt | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 package/win/tcg-rim-tool/readme.txt diff --git a/package/win/tcg-rim-tool/readme.txt b/package/win/tcg-rim-tool/readme.txt new file mode 100644 index 00000000..f4783942 --- /dev/null +++ b/package/win/tcg-rim-tool/readme.txt @@ -0,0 +1,38 @@ +This README is part of the ZIP_Files.zip generated from hirs_package_linux.yml the goal of this zip is to have the TCG RIM tool, and the TCG Eventlog tool available on windows. + +To get the tools working on windows follow the instructions below: + + +1- Unzip the main folder ("ZIP_Files"), followed by unzipping both the tcg_eventlog_tool.zip and tcg_rim_tool.zip in the working directory. + +2- Open PowerShell as administrator and run > Set-ExecutionPolicy unrestricted +To verify run > Get-ExecutionPolicy and it should be set to "unrestricted" + +3- Right click on create_hirs_desktop_shortcut.ps1 and run with PowerShell, a PowerShell terminal will pop-up, if prompted type "R" to run the script. + +4- HIRS_tools.ps1 should appear on your desktop, right click on it and run with PowerShell . if prompted type "R" to run the script. + +5- The HIRS terminal should popup. + +6- To remove the warning messages when running the rim tool and the event log tool: +Open PowerShell as administrator, navigate to the working directory, and run the following: +> Unblock-File -Path .\rim.ps1 +> Unblock-File -Path .\eventLog.ps1 + +To run the rim tool try the following commands + +> rim -c base -a .\tcg_rim_tool\Base_Rim_Config.json -l .\tcg_rim_tool\TpmLog.bin -k .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.key -p .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.pem -o baseRim.swidtag + +> rim -v .\baseRim.swidtag -p .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.pem -t .\tcg_rim_tool\PC_OEM1_Cert_Chain.pem -l .\tcg_rim_tool\TpmLog.bin + + + +To run the eventlog tool: + +elt -f C:\Windows\Logs\MeasuredBoot\[.log file here] -e + +Eventlog files are found here windows: +C:\Windows\Logs\MeasuredBoot + +Example Command would be: +> elt -f C:\Windows\Logs\MeasuredBoot\000000001-000000001.log -e (file name needs to match on on your system) From 3dcccfa67031ed18cd5f15f4e9010d5db78a98ed Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Wed, 24 Jul 2024 15:52:26 -0400 Subject: [PATCH 23/26] Update hirs_package_linux.yml --- .github/workflows/hirs_package_linux.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index 5818e337..d11b1ea0 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v4 + uses: actions/setup-java@v3 with: java-version: '17' distribution: 'temurin' @@ -32,7 +32,7 @@ jobs: sudo apt-get update sudo apt-get install git curl nano cron mariadb-server - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 + uses: gradle/gradle-build-actions@v2 - name: Execute Gradle build run: | ./gradlew build; @@ -55,28 +55,28 @@ jobs: path: HIRS_AttestationCAPortal/build/distributions/*.rpm if-no-files-found: error - name: Archive DEB files - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: DEB_Files path: HIRS_AttestationCAPortal/build/distributions/*.deb if-no-files-found: error - name: War files - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: WAR_Files path: HIRS_AttestationCAPortal/build/libs/HIRS_AttestationCAPortal.war if-no-files-found: error - name: JAR_Files - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: JAR_Files path: artifacts/jars/ if-no-files-found: error - name: ZIP_Files - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: ZIP_Files path: artifacts/win/ if-no-files-found: error - \ No newline at end of file + From dfd84b4c906d02ab6407e35f74f6843d53094dbd Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Thu, 25 Jul 2024 11:55:50 -0400 Subject: [PATCH 24/26] Update hirs_package_linux.yml --- .github/workflows/hirs_package_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index d11b1ea0..c3346b11 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -32,7 +32,7 @@ jobs: sudo apt-get update sudo apt-get install git curl nano cron mariadb-server - name: Setup Gradle - uses: gradle/gradle-build-actions@v2 + uses: gradle/gradle-build-action@v2 - name: Execute Gradle build run: | ./gradlew build; From 1ed65ca9b4987bbf5452c39bc4039d8fd11cbbaa Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Thu, 25 Jul 2024 12:05:37 -0400 Subject: [PATCH 25/26] Removed extra files --- package/win/tcg-rim-tool/readme.txt | 38 ----------------------------- 1 file changed, 38 deletions(-) delete mode 100644 package/win/tcg-rim-tool/readme.txt diff --git a/package/win/tcg-rim-tool/readme.txt b/package/win/tcg-rim-tool/readme.txt deleted file mode 100644 index f4783942..00000000 --- a/package/win/tcg-rim-tool/readme.txt +++ /dev/null @@ -1,38 +0,0 @@ -This README is part of the ZIP_Files.zip generated from hirs_package_linux.yml the goal of this zip is to have the TCG RIM tool, and the TCG Eventlog tool available on windows. - -To get the tools working on windows follow the instructions below: - - -1- Unzip the main folder ("ZIP_Files"), followed by unzipping both the tcg_eventlog_tool.zip and tcg_rim_tool.zip in the working directory. - -2- Open PowerShell as administrator and run > Set-ExecutionPolicy unrestricted -To verify run > Get-ExecutionPolicy and it should be set to "unrestricted" - -3- Right click on create_hirs_desktop_shortcut.ps1 and run with PowerShell, a PowerShell terminal will pop-up, if prompted type "R" to run the script. - -4- HIRS_tools.ps1 should appear on your desktop, right click on it and run with PowerShell . if prompted type "R" to run the script. - -5- The HIRS terminal should popup. - -6- To remove the warning messages when running the rim tool and the event log tool: -Open PowerShell as administrator, navigate to the working directory, and run the following: -> Unblock-File -Path .\rim.ps1 -> Unblock-File -Path .\eventLog.ps1 - -To run the rim tool try the following commands - -> rim -c base -a .\tcg_rim_tool\Base_Rim_Config.json -l .\tcg_rim_tool\TpmLog.bin -k .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.key -p .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.pem -o baseRim.swidtag - -> rim -v .\baseRim.swidtag -p .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.pem -t .\tcg_rim_tool\PC_OEM1_Cert_Chain.pem -l .\tcg_rim_tool\TpmLog.bin - - - -To run the eventlog tool: - -elt -f C:\Windows\Logs\MeasuredBoot\[.log file here] -e - -Eventlog files are found here windows: -C:\Windows\Logs\MeasuredBoot - -Example Command would be: -> elt -f C:\Windows\Logs\MeasuredBoot\000000001-000000001.log -e (file name needs to match on on your system) From c3459b166b6e13e80efed35759ed52fe6d28a21c Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Thu, 25 Jul 2024 12:38:38 -0400 Subject: [PATCH 26/26] Resolved warnings --- .github/workflows/hirs_package_linux.yml | 12 ++++++------ package/win/tcg-rim-tool/README.md | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/hirs_package_linux.yml b/.github/workflows/hirs_package_linux.yml index c3346b11..8604fc66 100644 --- a/.github/workflows/hirs_package_linux.yml +++ b/.github/workflows/hirs_package_linux.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' @@ -32,7 +32,7 @@ jobs: sudo apt-get update sudo apt-get install git curl nano cron mariadb-server - name: Setup Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 - name: Execute Gradle build run: | ./gradlew build; @@ -55,25 +55,25 @@ jobs: path: HIRS_AttestationCAPortal/build/distributions/*.rpm if-no-files-found: error - name: Archive DEB files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: DEB_Files path: HIRS_AttestationCAPortal/build/distributions/*.deb if-no-files-found: error - name: War files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: WAR_Files path: HIRS_AttestationCAPortal/build/libs/HIRS_AttestationCAPortal.war if-no-files-found: error - name: JAR_Files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: JAR_Files path: artifacts/jars/ if-no-files-found: error - name: ZIP_Files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ZIP_Files path: artifacts/win/ diff --git a/package/win/tcg-rim-tool/README.md b/package/win/tcg-rim-tool/README.md index 26716d8d..ec41c535 100644 --- a/package/win/tcg-rim-tool/README.md +++ b/package/win/tcg-rim-tool/README.md @@ -1,6 +1,6 @@ This README is part of the ZIP_Files.zip generated from hirs_package_linux.yml the goal of this zip is to have the TCG RIM tool, and the TCG Eventlog tool available on windows. -To get the tools working on windows follow the instructions below: +To get the tools running on windows follow the instructions below: 1- Unzip the main folder ("ZIP_Files"), followed by unzipping both the tcg_eventlog_tool.zip and tcg_rim_tool.zip in the working directory. @@ -13,7 +13,7 @@ To verify run > Get-ExecutionPolicy and it should be set to "unrestricted" 5- The HIRS terminal should popup. -6- To remove the warning messages when running the rim tool and the event log tool: +6- (optional) To remove the warning messages when running the rim tool and the event log tool: Open PowerShell as administrator, navigate to the working directory, and run the following: > Unblock-File -Path .\rim.ps1 > Unblock-File -Path .\eventLog.ps1