Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
Fix date checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Berenz committed Apr 1, 2016
1 parent a5074cd commit 4ec8632
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qz/auth/Certificate.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ public Certificate(String in) throws CertificateParsingException {
if (qzCrl.isLoaded()) {
if (qzCrl.isRevoked(getFingerprint()) || theIntermediateCertificate == null || qzCrl.isRevoked(makeThumbPrint(theIntermediateCertificate))) {
log.warning("Problem verifying certificate with CRL");
Date now = new Date();
valid = (getValidFromDate().compareTo(now) <= 0) && (getValidToDate().compareTo(now) > 0);
valid = false;
}
} else {
//Assume nothing is revoked, because we can't get the CRL
Expand Down

0 comments on commit 4ec8632

Please sign in to comment.