chubtub
eb77981e41
Unknown options are caught and reported to the user instead of throwing an exception
2024-02-16 11:34:59 -05:00
chubtub
81575ee08a
Print command line arguments only if --verbose option is given
2024-02-16 11:34:59 -05:00
chubtub
0ffb931112
Add commandline support for output verbosity --verbose
2024-02-16 11:34:59 -05:00
Cyrus
e819dad52b
This commit sets up the suppression filter file. The locations previous
...
established have been removed. The configuration is the root directory
2024-02-05 10:50:12 -05:00
Cyrus
ab5036982f
Updated version for suppressions file
2024-02-02 08:37:44 -05:00
Cyrus
17bd7d9021
New branch because there seemed to be issues with the previous branch
...
merges.
2024-02-02 08:07:08 -05:00
chubtub
5e3ab59dad
Clean up Main class for readability
2024-01-23 13:36:01 -05:00
chubtub
ea79dbfddf
Read rimtool version from /opt/rimtool/VERSION or jar filename if VERSION not found
2024-01-19 00:39:38 -05:00
chubtub
9172bd96ad
Revert previous changes to Main and SwidTagConstants
2024-01-19 00:39:38 -05:00
chubtub
c79434eb57
Add -V|--version for easy access to rimtool version number
2024-01-19 00:39:38 -05:00
iadgovuser26
3f7cac13c7
added VERSION file to /opt/hirs
2024-01-16 18:28:40 -05:00
chubtub
e4c9150b07
Merge pull request #650 from nsacyber/v3_issue-646
...
[#646 ] Fix broken rimtool validation
2024-01-11 10:52:42 -05:00
chubtub
ab01bb8647
Add KeyName to all signed base RIMs, and modify all unit test files to reflect this change.
2023-12-21 20:21:38 -05:00
Cyrus
0432646445
The initial issue found in the tcg event log code is present in the
...
rest, updating all exclude files to ignore this specific bug for the
time being
2023-12-20 15:53:32 -05:00
Cyrus
3fa2512427
The current issue that spot bugs is finding is an error upon itself. it
...
isn't resolved in this current version of the gradle plugin spotbugs.
2023-12-20 14:11:12 -05:00
Cyrus
ae1c1f82f3
Missed a change
2023-12-20 14:03:56 -05:00
Cyrus
7d1d92417f
Updates to spot bugs found
2023-12-20 13:52:05 -05:00
Cyrus
c0cee9d597
Fixed a typo and included files I didn't on the initial push
2023-12-20 13:10:58 -05:00
Cyrus
4a9c579822
This is the first step for adding spotbugs (formerly findbugs) back into
...
the build. The configuration is in place but the majority of the
projects are being excluded. The eventlog (a small sample size) is
however being run with the proper corrections commited.
2023-12-20 12:55:50 -05:00
chubtub
6c5a17a2f7
In ReferenceManifestValidator, set the truststore for swidtag XML files, and check if it has already been set for signature validation; removed a duplicate digest command for calculating file hashes.
2023-12-20 11:04:46 -05:00
chubtub
d325c04764
Migrate javax.xml.bind to jakarta. Delete hirs.swid.xjc package and update SwidTagConstants class to reference hirs.utils.xjc.
2023-11-30 15:08:25 -05:00
chubtub
0236a6b9c6
Add methods to ReferenceManifestValidator to facilitate swidtag XML validation. Modify rimtool classes to reference ReferenceManifestValidator. Modify build.gradle to build a fat jar.
2023-11-03 13:27:12 -04:00
chubtub
55936806d7
Revert "Merge pull request #606 from nsacyber/v3_issue-596"
...
This reverts commit 071e89a44f
, reversing
changes made to 45d550729f
.
2023-11-01 10:03:34 -04:00
chubtub
bfa30ca186
Change references in ACA and ACAPortal to HIRS_Utils package for migrated classes. Revert change to gradle.properties file.
2023-10-16 13:50:49 -04:00
chubtub
5f6a620ec2
Revert "Merge pull request #583 from nsacyber/v3_issue-563"
...
This reverts commit f725f90392
, reversing
changes made to 25101314a2
.
2023-09-27 09:32:58 -04:00
iadgovuser26
9998fa7f22
Merge branch 'main' into v3_issue_578-rpm_update
2023-09-19 16:31:21 -04:00
chubtub
66501c9444
Revert rimtool SwidTagValidator class changes, these will be in issue-582.
...
Revert SupportReferenceManifest migration to rimtool, this class will remain
in the ACA.
2023-09-14 00:05:50 -04:00
chubtub
38894e7ce5
WIP: migrate RIM classes from ACA to rimtool
2023-09-12 11:30:05 -04:00
iadgovuser26
cb4ad4d51a
Updated gradle to v8.3 and nebula to 11.4.0
2023-09-06 16:10:16 -04:00
iadgovuser26
665e90b176
updated with package for the ACA [no ci]
2023-04-27 19:52:08 +00:00
iadgovuser26 iadgovuser26@empire.eclipse.ncsc.mil
ef65c6ad8b
updated with package for tcg_rim_tool [no ci]
2023-03-17 14:47:10 -04:00
iadgovuser26
d862e95708
Added build and package creation for tcg_eventlog_tool [no ci]
2023-03-14 16:46:31 -04:00
chubtub
7fdd4b1e44
Added unit tests for timestamps
2023-01-09 11:47:30 -05:00
chubtub
b7f9c52fcb
Consolidate timestamp parameters into --timestamp RFC3(339|852). Added a validator class for the parameter arguments.
2022-12-29 01:55:19 -05:00
chubtub
6a84bb50c5
Merge branch 'java_xml_timestamp' into issue-493
2022-12-19 18:32:40 -05:00
chubtub
f74bc49120
Suppoort user input for RFC3339 timestamps
2022-12-19 10:39:10 -05:00
chubtub
307d0b3fe4
Read in counter signature file contents, encode in base64, and place in Timestamp element
2022-12-08 08:15:55 -05:00
chubtub
054699d14d
Add commandline support for passing in a countersignature file for RFC3852 timestamps
2022-12-08 08:15:55 -05:00
chubtub
2252270d94
Modify help text
2022-12-08 08:15:55 -05:00
chubtub
b5681411c0
Updated references of RFC3161 to RFC3852
2022-12-08 08:15:55 -05:00
chubtub
075d68664f
If no timestamp format is given a timestamp is not included in the resulting XML. Updated unit tests.
2022-12-08 08:15:55 -05:00
chubtub
fcf59290fe
Modify gateway class to insert a timestamp according to user selected format
2022-12-08 08:15:55 -05:00
chubtub
464abbf156
Modify Main and Commander classes to support options for RFC3161 and RFC3339
2022-12-08 08:15:55 -05:00
chubtub
233171893b
Add constants to support separate namespaces for RFC3161 and RCF3339.
2022-12-08 08:15:55 -05:00
chubtub
106e1fef76
Clean up SwidTagConstants class values
2022-12-08 08:15:55 -05:00
chubtub
dffcbf59bd
Add support for timestamping a signature
2022-12-08 08:15:50 -05:00
chubtub
59ef355326
Modify help text
2022-12-06 06:50:53 -05:00
chubtub
a1e7b0f7e4
Merge branch 'java_xml_timestamp' of github.com:nsacyber/HIRS into java_xml_timestamp
2022-11-21 14:26:35 -05:00
chubtub
180eebd16b
Merge branch 'master' into java_xml_timestamp
2022-11-21 14:18:04 -05:00
chubtub
fbcaadee31
Updated references of RFC3161 to RFC3852
2022-11-21 14:04:11 -05:00
chubtub
8b54023b5c
Merge branch 'master' into java_xml_timestamp
2022-10-26 10:25:19 -04:00
chubtub
d01b5de478
If no timestamp format is given a timestamp is not included in the resulting XML. Updated unit tests.
2022-10-26 07:51:25 -04:00
chubtub
ed2797735e
Modify gateway class to insert a timestamp according to user selected format
2022-09-21 10:52:32 -04:00
chubtub
97ccab0473
Modify Main and Commander classes to support options for RFC3161 and RFC3339
2022-09-20 00:19:01 -04:00
chubtub
e5da94fa08
Merge pull request #488 from nsacyber/c#_xmldsig_validation
...
[#487 ] Create xml_dsig_tool
2022-09-15 15:12:24 -04:00
chubtub
fa27277632
Added README.md
2022-09-13 10:28:10 -04:00
chubtub
1fccd3a222
Add constants to support separate namespaces for RFC3161 and RCF3339.
2022-09-13 10:24:38 -04:00
chubtub
68b11ce96d
Clean up SwidTagConstants class values
2022-09-12 10:14:24 -04:00
chubtub
25e77a6173
Merge branch 'master' into java_xml_timestamp
2022-09-08 20:37:26 -04:00
chubtub
ddbc13d2bb
Add support for timestamping a signature
2022-09-08 20:35:42 -04:00
chubtub
91ef59745b
Added README.md
2022-09-08 08:23:22 -04:00
chubtub
e72ffe1cbb
Debug failing unit tests
2022-08-26 10:11:35 -04:00
chubtub
20903c6bea
Merge branch 'master' into issue-462
2022-08-25 13:01:39 -04:00
chubtub
a8a6b61e9f
Merge pull request #449 from nsacyber/issue-441
...
[#441 ] tcg_rim_tool option to embed cert in signature
2022-08-25 11:34:14 -04:00
chubtub
b134ebdeda
WIP: debug function prints out the xml data to be signed, but the calculated signature value is not decoding properly.
2022-08-11 11:59:46 -04:00
iadgovuser26
4499e19104
Merge pull request #486 from nsacyber/eventLog_spdm_prep
...
[#485 ] Event log spdm prep
2022-08-11 10:45:21 -04:00
iadgovuser26
505f62ce39
added sha384 processing for event logs
2022-08-02 11:52:05 -04:00
chubtub
a5a36fda12
Rename directory tcg_rim_tool_msdotnet to xml_dsig_tool
2022-08-01 12:20:13 -04:00
chubtub
5061e6d88c
Sign function writes the signed xml to a new file. Added supporting files for testing convenience.
2022-07-28 20:48:29 -04:00
chubtub
de2db0491d
Read commandline arguments for sign and validate functions. Arguments for either include an xml file and a pem file.
2022-07-28 07:46:54 -04:00
chubtub
1836620f98
Moved Microsoft library program to its own directory under HIRS/tools/
2022-07-21 15:01:57 -04:00
chubtub
6a173fe162
This program generates a signature that passes validation by the rimtool.
2022-07-19 18:06:57 -04:00
iadgovuser26
eabc352eb4
addressing comments
2022-07-18 14:13:37 -04:00
iadgovuser26
49707fef84
addressing comments
2022-07-18 13:56:47 -04:00
chubtub
223fc15cc4
This program successfully validates a rimtool-signed swidtag
2022-07-18 12:57:27 -04:00
iadgovuser26
d95634e040
revert efi_prefix
2022-05-20 16:14:01 -04:00
iadgovuser26
2f64c2a1f9
added default values for -o and -f options
2022-05-03 15:57:54 -04:00
chubtub
de790ed7b2
Clean up unit tests
2022-04-15 10:39:35 -04:00
chubtub
4b3c01f990
Moved KeyValue processing to KeySelector inner class
2022-04-15 10:28:07 -04:00
chubtub
e5e6db75f4
WIP: Modify validation code and unit tests to account for embedded public key.
2022-04-15 10:28:07 -04:00
chubtub
0a618b3796
Modify default attributes file path. Add unit test for embed option.
2022-04-15 10:28:06 -04:00
chubtub
392821a2b9
Add option to explicitly embed a user-provided public key into signed swidtag.
2022-04-15 10:28:03 -04:00
chubtub
afbbf16583
Added checks and error handling for missing required JSON fields and/or input parameters.
2022-04-14 15:40:05 -04:00
iadgovuser26
fab3401a0d
Update README.md
2022-04-05 15:36:10 -04:00
iadgovuser26
e467cd8afc
Update README.md
2022-04-05 15:30:14 -04:00
iadgovuser26
b746b5d2db
Update README.md
...
Installation line corrected.
2022-04-05 10:26:05 -04:00
chubtub
3353bbf40e
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
chubtub
7ca015896e
Add supportRIMFormat attribute under Payload element, with default value of TCG_EventLog_Assertion.
2022-03-08 18:57:34 -05:00
chubtub
acfe67a546
Prevent jar file from being truncated by packaging.
2022-03-04 10:19:06 -05:00
chubtub
f8c593c4b7
Add git timestamp and hash to the rpm name. Also centralize version number to package.sh.
2022-03-04 10:19:06 -05:00
chubtub
2263a3567f
Merge pull request #426 from nsacyber/issue-423
...
[#423 ] Default signing credentials option for tcg_rim_tool
2022-02-18 09:33:09 -05:00
chubtub
c026e54da4
Upgrade log4j to 2.17.1. Remove unnecessary reference to log4j from tcg_eventlog_tool.
2022-01-12 16:19:19 -05:00
chubtub
df9cc298ff
Require the user to give signing credentials via -k and -p, or indicate default credentials via -d.
2022-01-04 17:12:53 -05:00
iadgovuser26
e07feb4be1
Merge pull request #421 from nsacyber/issue-418
...
[#418 ] Change json parsing package
2021-12-02 11:05:22 -05:00
chubtub
064dab89c8
Change from com.eclipsesource.json package to javax.json for parsing
2021-11-10 12:59:13 -05:00
Cyrus
2547cb6cce
This initial commit updates the location of the vendor-table.json which is used by the ACA and the eventlog tool. The previous change moved the vendor-table.json to a separate folder, however the code was not updated to reflect the change. This instead updates how the two install handle the file. The ACA was updated not to clobber the file if it exists and the eventlog tool was updated to do the same through an additional script called post install.
2021-11-09 08:32:04 -05:00
iadgovuser26
be155ef89c
Merge pull request #380 from nsacyber/issue-375
...
[#375 ] WIP: Add cert path validation to tcg_rim_tool
2021-08-02 13:54:34 -04:00
chubtub
b13835a9f0
Install vendor-table.json into two separate paths. Update version number of tcg_eventlog_tool.
2021-08-02 10:08:33 -04:00
chubtub
d2d2b9a494
Remove KeyValue element from signed swidtag. Update error message for missing signer cert. Update version number.
2021-07-23 17:41:31 -04:00
chubtub
8958085b60
Search for signing cert by SKID instead of PK
2021-07-16 16:46:31 -04:00