I'm trying to use cloudhsm with JCE on Amazon Linux but getting the following:
com.amazonaws.cloudhsm.jce.jni.exception.InternalException: Failed to find required resource, /native/libcloudhsm_jce.so.
at com.amazonaws.cloudhsm.jce.provider.NativeLibraryLoader.getJceLibraryResourceFile(NativeLibraryLoader.java:126) ~[cloudhsm-5.10.0.jar!/:na]
It happens on this line: Security.addProvider(new CloudHsmProvider());
I have installed both cli & jce: