Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,15 @@ public IValidationResult validateCertificate(List<X509Certificate> certs, IValid
Utils.getExceptionTrace(validationException));

// If reason is "unspecified" or "undetermined" this could indicate either that the certificate is not
// valid, or that there was a problem in executing the OCSP check. In the latter case, try again without
// valid, or that there was a problem in executing the revocation check. In the latter case, try again
// without. This covers OCSP infrastructure issues (IOException cause) and missing CRL distribution
// points (RecoverableCertPathValidatorException with "No CRLs found" message).
if (performRevocationCheck
&& (reason == BasicReason.UNDETERMINED_REVOCATION_STATUS
|| (reason == BasicReason.UNSPECIFIED && validationException.getCause() != null
&& (validationException.getCause() instanceof IOException)))) {
&& (validationException.getCause() instanceof IOException))
|| (reason == BasicReason.UNSPECIFIED && validationException.getMessage() != null
&& validationException.getMessage().contains("No CRLs found")))) {
try {
log.debug("Validation with revocation check failed ({}), retry without",
validationException.getMessage());
Expand Down