in wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/RelaxedTrustStrategy.java [41:60]
public boolean isTrusted(X509Certificate[] certificates, String authType) throws CertificateException {
if ((certificates != null) && (certificates.length > 0)) {
for (X509Certificate currentCertificate : certificates) {
try {
currentCertificate.checkValidity();
} catch (CertificateExpiredException e) {
if (!ignoreSSLValidityDates) {
throw e;
}
} catch (CertificateNotYetValidException e) {
if (!ignoreSSLValidityDates) {
throw e;
}
}
}
return true;
} else {
return false;
}
}