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

NSS tests failing on OL9 linux-aarch64 hosts

XMLWordPrintable

        The tests look for NSS libraries on paths described in PKCS11Test.java, i.e.

                osMap.put("Linux-aarch64-64", new String[] {
                        "/usr/lib/aarch64-linux-gnu/",
                        "/usr/lib/aarch64-linux-gnu/nss/",
                        "/usr/lib64/" });

        On OL8, not found. It can only pass without doing anything.

        On OL9, found. The tests go on and fail with

        java.io.IOException: load failed
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.engineLoad(P11KeyStore.java:778)
        at java.base/java.security.KeyStore.load(KeyStore.java:1500)
        at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:1016)
        at java.base/sun.security.tools.keytool.Main.run(Main.java:419)
        at java.base/sun.security.tools.keytool.Main.main(Main.java:412)
        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:1841)
        at NssTest.main(NssTest.java:52)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
        at java.base/java.lang.Thread.run(Thread.java:1591)
        Caused by: javax.security.auth.login.LoginException
        at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.login(SunPKCS11.java:1541)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.login(P11KeyStore.java:878)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.engineLoad(P11KeyStore.java:765)
        ... 14 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:1524)
        ... 16 more

              mpowers Mark Powers
              weijun Weijun Wang
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: