Details

      Backports

        Description

        The test

        sun/security/pkcs/pkcs8/PKCS8Test.java

        has been seen to fail on at least some Solaris systems.

          Issue Links

            Activity

            Hide
            amjiang Amanda Jiang added a comment -
            The issue happened because in Solaris 10 or higher version, the DSAPrivateKeys returned by SunPKCS11 Provider are not a subclasses of PKCS8Key. then an exception is thrown from PKCS8Key:
            public static PKCS8Key parse (DerValue in) throws IOException {
                    PrivateKey key;

                    key = parseKey(in);
                    if (key instanceof PKCS8Key)
                        return (PKCS8Key)key;

                    throw new IOException("Provider did not return PKCS8Key");
                }

            Show
            amjiang Amanda Jiang added a comment - The issue happened because in Solaris 10 or higher version, the DSAPrivateKeys returned by SunPKCS11 Provider are not a subclasses of PKCS8Key. then an exception is thrown from PKCS8Key: public static PKCS8Key parse (DerValue in) throws IOException {         PrivateKey key;         key = parseKey(in);         if (key instanceof PKCS8Key)             return (PKCS8Key)key;         throw new IOException("Provider did not return PKCS8Key");     }
            Show
            amjiang Amanda Jiang added a comment - RFR: http://mail.openjdk.java.net/pipermail/security-dev/2015-November/013082.html
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/33fd40487d6d
            User: weijun
            Date: 2015-11-25 01:43:12 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/33fd40487d6d User: weijun Date: 2015-11-25 01:43:12 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/33fd40487d6d
            User: lana
            Date: 2015-12-10 00:27:01 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/33fd40487d6d User: lana Date: 2015-12-10 00:27:01 +0000

              People

              • Assignee:
                amjiang Amanda Jiang
                Reporter:
                darcy Joe Darcy
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: