From 21111c129153c5c03864d2989893f7b78ad28bcb Mon Sep 17 00:00:00 2001 From: Cyrus <24922493+cyrus-dev@users.noreply.github.com> Date: Thu, 29 Feb 2024 11:26:10 -0500 Subject: [PATCH] A message is now printed indicating in the log that the platform version check is skipped if the information is not specified, unknown or null. --- .../persist/validation/CertificateAttributeScvValidator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/CertificateAttributeScvValidator.java b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/CertificateAttributeScvValidator.java index ce4c8c09..af6d33c3 100644 --- a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/CertificateAttributeScvValidator.java +++ b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/CertificateAttributeScvValidator.java @@ -250,6 +250,10 @@ public class CertificateAttributeScvValidator extends SupplyChainCredentialValid } passesValidation &= fieldValidation; + } else { + log.warn("The Platform Certificate System version was {} and the reported Device System Information " + + "version was {}, therefore this check is skipped...", + platformCredential.getVersion(), hardwareInfo.getVersion()); } // check PlatformSerial against both system-serial-number and baseboard-serial-number