JDK-8364529 : Release Note: Support Algorithm Constraints and Certificate Checks in SunX509 Key Manager
  • Type: Sub-task
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-08-01
  • Updated: 2025-08-01
  • Resolved: 2025-08-01
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 26
26Fixed
Related Reports
Duplicate :  
Description
The default "SunX509" `KeyManagerFactory` for TLS now supports the same algorithm constraints and certificate check functionality as the "PKIX" `KeyManagerFactory`. Selection and prioritization of the local certificates chosen by the `KeyManager` is based on the following checks:

1) Local certificates are checked against peer supported certificate signature algorithms sent with the `signature_algorithms_cert` TLS extension.
2) Local certificates are checked against TLS algorithm constraints specified in the `jdk.tls.disabledAlgorithms` and `jdk.certpath.disabledAlgorithms` security properties.
3) Local certificates are prioritized based on validity period and certificate extensions.

The legacy behavior (no checking of local certificates) of the "SunX509" key manager can be restored by setting the `jdk.tls.SunX509KeyManager.certChecking` system property to `false`.