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

Test SunJSSEFIPSInit fails on Ubuntu

    Details

    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b03
    • CPU:
      x86
    • OS:
      linux_ubuntu

      Description

      The test supposes that libnss3.so stays in /usr/lib64 which is not true at least for Ubuntu 16. The workaround to make test pass on Ubuntu:
      sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64

      ----------System.out:(22/1871)----------
      Exception in thread "main" java.security.ProviderException: Could not initialize NSS
              at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:217)
              at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11$1.run(SunPKCS11.java:112)
              at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11$1.run(SunPKCS11.java:109)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.configure(SunPKCS11.java:109)
              at java.base/sun.security.jca.ProviderConfig$3.run(ProviderConfig.java:251)
              at java.base/sun.security.jca.ProviderConfig$3.run(ProviderConfig.java:242)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at java.base/sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:242)
              at java.base/sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:222)
              at java.base/sun.security.jca.ProviderList.loadAll(ProviderList.java:315)
              at java.base/sun.security.jca.ProviderList.removeInvalid(ProviderList.java:332)
              at java.base/sun.security.jca.Providers.getFullProviderList(Providers.java:173)
              at java.base/java.security.Security.getProviders(Security.java:457)
              at SunJSSEFIPSInitClient.main(SunJSSEFIPSInitClient.java:31)
      Caused by: java.io.IOException: nssLibDir must be a directory:/usr/lib64
              at jdk.crypto.cryptoki/sun.security.pkcs11.Secmod.initialize(Secmod.java:189)
              at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:212)
              ... 14 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mbalao Martin Balao
                Reporter:
                bulasevich Boris Ulasevich
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: