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

Java provider SunPKCS11-Solaris doesn't support KeyPairGenerator with DSA alg. for solaris 10 11

    XMLWordPrintable

Details

    Description

      JCK: JCK-runtime-6b b18
      J2SE: FAIL - since FCS. Not a regression; was not found before because the test is new.
      Platform[s]: FAIL - Solaris 10/11
      PASS - Solaris 8 and 9
      switch/Mode: FAIL - default

      Test api/java_security/interfaces/DSAKeyPairGenerator/InitializeTests fails on solaris 10 and 11 but passes on Solaris 8 and 9. The problem is the test tries to create KeyPairGenerator for every security provider registered in the system. For SunPKCS11-Solaris KeyPAirGenerator.getInstance throws NoSuchAlgorithmException.

      According to the following references:
      http://java.sun.com/javase/6/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
      http://java.sun.com/javase/6/docs/technotes/guides/security/p11guide.html#ALG

      DSA should be supported for PKCS#11 security provider.

      Steps to reproduce:

      run the following code on solaris 10 or 11:

      import java.security.KeyPairGenerator;

      public class Test {

          public static void main(String argv[]) {
      try{
      KeyPairGenerator.getInstance("DSA","SunPKCS11-Solaris");
      }catch (Exception e)
      {
      e.printStackTrace();
      }
          }

      }

      Attachments

        Issue Links

          Activity

            People

              valeriep Valerie Peng
              pastepan Pavel Stepanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: