-
Bug
-
Resolution: Fixed
-
P4
-
11.0.6
-
Ubuntu 16.04.5 LTS
-
b03
-
x86
-
linux_ubuntu
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
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
- relates to
-
JDK-8230923 SunJSSE is not properly initialized in FIPS mode from a configuration file
- Resolved