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

sun/security/tools/keytool/NssTest.java failing on Macos,MacOS aarch64 hosts

XMLWordPrintable

      keytool error: java.io.IOException: load failed

      java.io.IOException: load failed
      at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.engineLoad(P11KeyStore.java:767)
      at java.base/java.security.KeyStore.load(KeyStore.java:1473)
      at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:1022)
      at java.base/sun.security.tools.keytool.Main.run(Main.java:423)
      at java.base/sun.security.tools.keytool.Main.main(Main.java:416)
      at KeyToolTest.test(KeyToolTest.java:173)
      at KeyToolTest.test(KeyToolTest.java:141)
      at KeyToolTest.testOK(KeyToolTest.java:196)
      at KeyToolTest.testPKCS11(KeyToolTest.java:687)
      at KeyToolTest.main(KeyToolTest.java:1842)
      at NssTest.main(NssTest.java:52)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:842)
      Caused by: javax.security.auth.login.LoginException
      at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.login(SunPKCS11.java:1512)
      at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.login(P11KeyStore.java:867)
      at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.engineLoad(P11KeyStore.java:754)
      ... 16 more
      Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_USER_TYPE_INVALID
      at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_Login(Native Method)
      at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.login(SunPKCS11.java:1496)
      ... 18 more

      JavaTest Message: Test threw exception: java.io.IOException: load failed
      JavaTest Message: shutting down test

        There are no Sub-Tasks for this issue.

            sshivang Shivangi Gupta
            sshivang Shivangi Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: