diff --git a/tools/tcg_rim_tool/src/main/java/hirs/swid/SwidTagGateway.java b/tools/tcg_rim_tool/src/main/java/hirs/swid/SwidTagGateway.java index 4b30d6624..c7ef942d5 100644 --- a/tools/tcg_rim_tool/src/main/java/hirs/swid/SwidTagGateway.java +++ b/tools/tcg_rim_tool/src/main/java/hirs/swid/SwidTagGateway.java @@ -815,6 +815,8 @@ private XMLObject createXmlTimestamp(Document doc, XMLSignatureFactory sigFactor switch (timestampFormat.toUpperCase()) { case "RFC2315": try { + timeStampElement = + doc.createElement(SwidTagConstants.RFC2315_PFX + ":timestamp"); byte[] counterSignature = Base64.getEncoder().encode( Files.readAllBytes(Paths.get(timestampArgument))); timeStampElement.setAttributeNS("http://www.w3.org/2000/xmlns/", diff --git a/tools/tcg_rim_tool/src/test/resources/generated_timestamp_rfc2315.swidtag b/tools/tcg_rim_tool/src/test/resources/generated_timestamp_rfc2315.swidtag index 5878e7f60..67af62b9f 100644 --- a/tools/tcg_rim_tool/src/test/resources/generated_timestamp_rfc2315.swidtag +++ b/tools/tcg_rim_tool/src/test/resources/generated_timestamp_rfc2315.swidtag @@ -1,8 +1,8 @@ - + - + @@ -17,25 +17,25 @@ - f3ulvid12X4b4EqgAQrriXwqvqlNd1GXoSf/wI+zf2A= + 6Zw06t03HhtT/RdeEnhzyMl3L7kl99jh31JLDl5UqXA= - ibBq+F0kVcZzamIb0aN2cfyexARJYg0zGFA/T+fZvFY= + m0fuWtrx9hhNHkPIUc1zvapyR4gSwNvktf37PeTZHgU= - RYidnj7kzYjZxy22BKR9bjHktaxaKf8XgzvdKX5aG/x4Ieuu9XFDphDahoD1gkWG0WnJzaPZAoXn -+TU25X9As7MTo2CVIcbg09ZRJIg735GlYX28dFphmiYUCEwoJ6bloSdJbt8u/GgrW/dVkldySpci -88Y3dQoqXio2i2R7R5hIBEEdCmuQL8SmPNsAtD9pJRe5YoP8sfHo3IAL9AkYqW/+U4GkqOJyNI8G -/Kxy4TWdzuOz2N6zqNCsDQ2FyzRUVyhQgvsHSDbaJL3IXIobxBpAUHemfVI0tO8MsTS0+v1uNypQ -MvAQALhV43eoBKQyzmFlKHYSGlj8AC0zktXTlg== + ZP9zUjnii1Vwd4Rc4v7Q1smyXOZBUmGj/bNRtW//0+j3stknH2jLBOIs6tfcxzseyCjr5Urj0vme +ppWJLAEUa8YqBi9mirsueoIv+DUEOTFqDkqULvNm2eczxjExsdcWs8lYPyEsBV0T8ms87SNyNmdX +Nhf1iaM3ymtwoorQkTEnE6V0osqkpT0VNHkpN5+b+LSleeapSsdW/Zh1Zc4gJ6u+voKE+4y95hun +0SnzSFqOucpvCrXTFfT0yo6H5IJljz/QNirevj9pYyA0gL1mTXT4skkvnifBynj62LpMr2K5ee32 +h3nHwNs+vlFg5yXMX9xIwiohTOga9z3rm3pJKA== 2fdeb8e7d030a2209daa01861a964fedecf2bcc1 - +