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:
$ rpm -qa | grep cloudhsm
cloudhsm-cli-5.10.0-1.el6.x86_64
cloudhsm-jce-5.10.0-1.el6.x86_64
Any help appreciated