Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4459538

Our builder and validator implementations don't handle targetCertConstraints pro

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • security-libs
    • None
    • beta2
    • generic
    • generic

      Our implementation of CertPathValidator (sun.security.provider.certpath.PKIXCertPathValidator) should check whether the proposed final certificate matches the CertSelector provided as the targetCertConstraints parameter of the PKIXParameters object (if any). Instead, it only checks certain fields (subject, key usage, extended key usage, and subject alternative names).

      Also, our implementation of CertPathBuilder (sun.security.provider.certpath.SunCertPathBuilder) throws a ClassCastException if the CertSelector provided as the targetCertConstraints parameter of the PKIXParameters object isn't an X509CertSelector. It should throw an InvalidAlgorithmParameterException instead.

            mullan Sean Mullan
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: