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

JDK 7 Certpathbuilder.build throws SunCertPathBuilderException when JDK 6 works

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 7u40, 8
    • 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)
      ...

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

              Created:
              Updated:
              Resolved: