-
Type: Support
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: OpenDNSSEC 2.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:
Linux
We are trying to use softhsm in a java app through Sun PKCS#11 provider. We have configured it using java.security file. The app/process runs fine initially, but after sometime (say after 10-12 hrs) it starts reporting the following exception.
We are not sure if this is a bug or there is something we are missing.
-15-Apr-2021 04:50:43.823 UTC ERROR [catalina-exec-41] [org.apache.coyote.http11.Http11Processor] [{}] - Error processing request
115476:java.security.ProviderException: nextBytes() failed
115477- at sun.security.pkcs11.P11SecureRandom.implNextBytes(P11SecureRandom.java:186) ~[sunpkcs11.jar:1.8.0_275]
115478- at sun.security.pkcs11.P11SecureRandom.engineNextBytes(P11SecureRandom.java:134) ~[sunpkcs11.jar:1.8.0_275]
115479- at java.security.SecureRandom.nextBytes(SecureRandom.java:478) ~[?:1.8.0_275]
115480- at java.util.UUID.randomUUID(UUID.java:145) ~[?:1.8.0_275]
.
.
.
.
.
115497-Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_SESSION_HANDLE_INVALID
115498- at sun.security.pkcs11.wrapper.PKCS11.C_GenerateRandom(Native Method) ~