diff --git a/HIRS_AttestationCA/src/main/java/hirs/attestationca/service/SupplyChainValidationServiceImpl.java b/HIRS_AttestationCA/src/main/java/hirs/attestationca/service/SupplyChainValidationServiceImpl.java index 76ad5bcd..fe7b544d 100644 --- a/HIRS_AttestationCA/src/main/java/hirs/attestationca/service/SupplyChainValidationServiceImpl.java +++ b/HIRS_AttestationCA/src/main/java/hirs/attestationca/service/SupplyChainValidationServiceImpl.java @@ -445,6 +445,7 @@ public class SupplyChainValidationServiceImpl implements SupplyChainValidationSe passed = false; fwStatus = new AppraisalStatus(FAIL, "Firmware validation failed: invalid certificate path."); + validationObject = baseReferenceManifest; } } catch (IOException e) { LOGGER.error("Error getting X509 cert from manager: " + e.getMessage()); @@ -467,7 +468,7 @@ public class SupplyChainValidationServiceImpl implements SupplyChainValidationSe } } - if (signingCert == null) { + if (passed && signingCert == null) { passed = false; fwStatus = new AppraisalStatus(FAIL, "Firmware validation failed: signing cert not found."); diff --git a/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/index.jsp b/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/index.jsp index 366a3e0a..7fa24d81 100644 --- a/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/index.jsp +++ b/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/index.jsp @@ -70,7 +70,7 @@