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

PKCS11 tests fail on CentOS Stream 9

XMLWordPrintable

    • b16
    • x86_64
    • linux

        PKCS11 tests (test/jdk/sun/security/pkcs11/Signature/) fail on the new platform CentOS Stream 9 with the following stack (affected all Java versions):

        java.security.ProviderException: Initialization failed
        at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:392)
        at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11$1.run(SunPKCS11.java:125)
        at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11$1.run(SunPKCS11.java:122)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
        at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.configure(SunPKCS11.java:122)
        at PKCS11Test.getSunPKCS11(PKCS11Test.java:150)
        at PKCS11Test.getSunPKCS11(PKCS11Test.java:142)
        at PKCS11Test.testNSS(PKCS11Test.java:549)
        at PKCS11Test.main(PKCS11Test.java:210)
        at ByteBuffers.main(ByteBuffers.java:46)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:828)
        Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: 0xCE534351
        at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_Initialize(Native Method)
        at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11$SynchronizedPKCS11.C_Initialize(PKCS11.java:1682)
        at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.getInstance(PKCS11.java:185)
        at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:346)
        ... 13 more

        For other Linux platforms these tests pass.

          1. ByteBuffers.jtr
            11 kB
          2. InitAgainPSS.jtr
            11 kB
          3. KeyAndParamCheckForPSS.jtr
            12 kB
          4. LargeDSAKey.jtr
            11 kB
          5. ReinitSignature.jtr
            11 kB
          6. SigInteropPSS.jtr
            11 kB
          7. SigInteropPSS2.jtr
            11 kB
          8. SignatureTestPSS.jtr
            11 kB
          9. SignatureTestPSS2.jtr
            11 kB
          10. TestDSA.jtr
            11 kB
          11. TestDSA2.jtr
            11 kB
          12. TestDSAKeyLength.jtr
            12 kB
          13. TestRSAKeyLength.jtr
            11 kB

              omikhaltcova Olga Mikhaltcova
              omikhaltcova Olga Mikhaltcova
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: