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

security tests failed with "java.security.ProviderException: java.security.KeyException: Access is denied."

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Other
    • Affects Version/s: 12
    • Fix Version/s: tbd
    • Component/s: security-libs
    • Labels:

      Description

      lots of security tests failed with "java.security.ProviderException: java.security.KeyException: Access is denied."
      e.g.
      java/security/KeyPairGenerator/FinalizeHalf.java
      java/security/SecureRandom/ApiTest.java
      java/security/SecureRandom/EnoughSeedTest.java
      ...


      ----------System.err:(21/1286)----------
      java.security.ProviderException: java.security.KeyException: Access is denied.

      at jdk.crypto.mscapi/sun.security.mscapi.RSAKeyPairGenerator.generateKeyPair(RSAKeyPairGenerator.java:117)
      at java.base/java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:722)
      at FinalizeHalf.test(FinalizeHalf.java:76)
      at FinalizeHalf.main(FinalizeHalf.java:54)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
      at java.base/java.lang.Thread.run(Thread.java:835)
      Caused by: java.security.KeyException: Access is denied.

      at jdk.crypto.mscapi/sun.security.mscapi.RSAKeyPairGenerator.generateRSAKeyPair(Native Method)
      at jdk.crypto.mscapi/sun.security.mscapi.RSAKeyPairGenerator.generateKeyPair(RSAKeyPairGenerator.java:111)
      ... 9 more

        Attachments

          Activity

            People

            • Assignee:
              jjiang John Jiang
              Reporter:
              mli Hamlin Li (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: