Skip to main content

Runtime Errors

Symptom: Java hangs after installing and configuring SunPKCS11 with FxPKCS11

If Java and OpenSSL are pointing to the same libfxpkcs11.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 different libfxpkcs11.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/java
2
Copy the libfxpkcs11.so file to the newly created directory
3
Edit the pkcs11.cfg file. If the user followed the guide, the file would be found in /usr/local/etc
4
Edit the library line so that it will point to copied libfxpkcs11.so
None
5
Retest Java command to make sure that it is now able to succeed

Verification

To retest, youi can run a basic HSM + Java command
Shell
A successful output should look like:
None