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
[2025-12-03 17:05:58.378] | DEBUG | 73FE95AFF6C0 | waitForConnect: Blocking for up to 3000 milliseconds on socket connect.[2025-12-03 17:05:58.379] | INFO | 73FE95AFF6C0 | establishConnectionIP: Socket 6 connects to 10.0.5.111:9100.[2025-12-03 17:05:58.379] | INFO | 73FE95AFF6C0 | setupSSL: Setting up SSL. (Slot 0)[2025-12-03 17:05:58.645] | DEBUG | 73FF0EDFF6C0 | C_Initialize: Blocking until surveyor has completed its initial HSM check (10s Max).[2025-12-03 17:06:09.302] |*ERROR*| 73FF0EDFF6C0 | C_Initialize: Surveyor failed to complete its initial HSM check within the timeout.[2025-12-03 17:06:09.302] | INFO | 73FF0EDFF6C0 | C_Initialize: FxPKCS11 library initialized.[2025-12-03 17:06:09.302] | INFO | 73FF0EDFF6C0 | C_Initialize: FxPKCS11 library version 5.15 (Revision: 4fee).[2025-12-03 17:06:09.302] | INFO | 73FF0EDFF6C0 | C_Initialize: Platform: Linux