JDK 7 Certpathbuilder.build throws SunCertPathBuilderException when JDK 6 works

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P2
    • None
    • Affects Version/s: 7u40, 8
    • Component/s: security-libs
    • generic
    • generic

      1. Attached 3-7885427021-testcase.tar.gz
      2. cd testcase1-ng/
      3. ./test.sh <jdk_home>

      The testcase2-ok is similar code, the only change is
      the empty intermediate keystore.

      Tested with 6u51 - works.
      7 FCS fails. 7u40 fails. 1.8.0-ea-b109 fails.


      Running the same piece of code/certs/keystore with JDK 6 works.
      JDK 7 fails with the following exception.

      sun.security.provider.certpath.SunCertPathBuilderException: unable to find
      valid certification path to requested target
              at
      sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuild
      er.java:196)
              at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)
      ...

            Assignee:
            Mala Bankal (Inactive)
            Reporter:
            Mala Bankal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: