One line change to SupplyChainCredentialValidator to loop fully through truststore.

This commit is contained in:
chubtub 2021-07-01 10:50:53 -04:00
parent 0f8d41e78f
commit e86d1efbbf

View File

@ -1405,7 +1405,7 @@ public final class SupplyChainCredentialValidator implements CredentialValidator
boolean issuerMatchesSubject = false;
boolean signatureMatchesPublicKey = false;
while (foundRootOfCertChain.isEmpty() && certIterator.hasNext()) {
while (certIterator.hasNext()) {
trustedCert = certIterator.next();
issuerMatchesSubject = issuerMatchesSubjectDN(cert, trustedCert);
signatureMatchesPublicKey = signatureMatchesPublicKey(cert, trustedCert);