Runtime Errors
Symptom: Java hangs after installing and configuring SunPKCS11 with FxPKCS11
If Java and OpenSSL are pointing to the samelibfxpkcs11.so, you might run into an issue where running a Java HSM-specific command will cause a hang.
Error logs will look similar to:
None
Solution
Make sure that Java points to a differentlibfxpkcs11.so by editing the pkcs11.cfg file.
1
Create a new directory. We would recommend a directory with a path similar to:
/usr/local/lib/fxpkcs11/java2
Copy the
libfxpkcs11.so file to the newly created directory3
Edit the
pkcs11.cfg file. If the user followed the guide, the file would be found in /usr/local/etc4
Edit the
library line so that it will point to copied libfxpkcs11.soNone
5
Retest Java command to make sure that it is now able to succeed
Verification
To retest, youi can run a basic HSM + Java commandShell
None

