Guest User

Untitled

a guest
Jul 9th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. $ cat /tmp/pkcs11.cfg
  2. name = NSSfips
  3. nssLibraryDirectory = /usr/local/opt/nss/lib
  4. nssSecmodDirectory = /tmp/fipsdb
  5. nssModule = fips
  6.  
  7. $ export NSPR_LOG_MODULES="all:9"
  8. $ export NSPR_LOG_FILE="/tmp/pkcs11.log"
  9. $ export NSS_DEBUG_PKCS11_MODULE="NSS Internal PKCS #11 Module"
  10. $ java -Djava.security.debug=sunpkcs11 -cp jetty-all-9.4.19.v20190610-uber.jar:openjsse-1.0.1-SNAPSHOT.jar:. HelloNSS11 '[redacted]'
  11. 2019-07-09 07:58:38.105:INFO::main: Logging initialized @158ms to org.eclipse.jetty.util.log.StdErrLog
  12. SunPKCS11 loading /tmp/pkcs11.cfg
  13. Exception in thread "main" java.security.ProviderException: Could not initialize NSS
  14. at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:218)
  15. at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11$1.run(SunPKCS11.java:113)
  16. at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11$1.run(SunPKCS11.java:110)
  17. at java.base/java.security.AccessController.doPrivileged(Native Method)
  18. at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.configure(SunPKCS11.java:110)
  19. at HelloNSS11.main(HelloNSS11.java:63)
  20. Caused by: java.io.IOException: NSS initialization failed
  21. at jdk.crypto.cryptoki/sun.security.pkcs11.Secmod.initialize(Secmod.java:234)
  22. at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:213)
  23. ... 5 more
  24.  
  25. $ cat /tmp/pkcs11.log
  26. 161026048[7fba49435db0]: Loaded library a.out (init)
  27. 161026048[7fba49435db0]: Loaded library /usr/local/opt/nss/lib/libfreebl3.dylib (load lib)
  28. 161026048[7fba49435db0]: Loaded library /usr/local/opt/nss/lib/libsoftokn3.dylib (load lib)
  29. 161026048[7fba49435db0]: Loaded library /usr/local/opt/nss/lib/libnssdbm3.dylib (load lib)
Advertisement
Add Comment
Please, Sign In to add comment