JDK-8165103 : Update to "denyAfter constraint check" exception message
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-08-30
  • Updated: 2017-03-20
  • Resolved: 2016-10-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u152Fixed 9 b140Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Current exception message is:

java.security.cert.CertPathValidatorException: denyAfter constraint check failed.  Constraint date: Thu, Dec 31 16:00:00 PST 2016; Cert date: Fri, Jul 1 00:00:00 PDT 2016

Looking at this, it is not clear what "Cert date" indicates. It is not certificate issue or expiry date. This is more confusing when we have this exception with signed jar.
Comments
Additional change was making the date format from "YYYY" to "yyyy". There are cases where "YYYY" return an unexpected year in the error message.
05-10-2016