mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-18 02:39:56 +00:00
Added a log statement to get more information about the certificate that is failing signature verification.
This commit is contained in:
parent
d183504a3f
commit
c944aab335
@ -1632,6 +1632,8 @@ public final class SupplyChainCredentialValidator implements CredentialValidator
|
||||
} catch (InvalidKeyException | CertificateException | NoSuchAlgorithmException
|
||||
| NoSuchProviderException | SignatureException e) {
|
||||
LOGGER.error("Exception thrown while verifying certificate", e);
|
||||
LOGGER.error(String.format("%s.verify(%s)", cert.getSubjectDN(),
|
||||
signingCert.getSubjectDN()));
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1678,6 +1680,8 @@ public final class SupplyChainCredentialValidator implements CredentialValidator
|
||||
return cert.isSignatureValid(contentVerifierProvider);
|
||||
} catch (OperatorCreationException | CertException e) {
|
||||
LOGGER.error("Exception thrown while verifying certificate", e);
|
||||
LOGGER.error(String.format("%s.isSignatureValid(%s)", cert.getSerialNumber(),
|
||||
signingKey.getFormat()));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user