Getting java IAIK PKCS11 wrapper work for nfast

橙三吉。 提交于 2019-12-08 05:06:26

问题


I am trying to get IAIK PKCS11 wrapper to work with nfast.

It is always expecting pkcs11wrapper library file and throws an error -

java.lang.UnsatisfiedLinkError: pkcs11wrapper (Not found in java.library.path)

How do I get it to use the library file (/opt/nfast/toolkits/pkcs11/libcknfast.so) provided by the HSM?

Any help is greatly appreciated and forgotten about!


回答1:


You need to configure the path to the IAIK pkcs11wrapper, either on the LD_LIBRARY_PATH, java.library.path (-Djava.library.path=java.library.path:/path/to/pkcs11wrapper) or via the iaik properties file using PKCS11_WRAPPER_PATH variable.

All are described in the IAIK documentation links below.

http://jce.iaik.tugraz.at/sic/Products/Core-Crypto-Toolkits/PKCS_11_Provider/quick_start http://jce.iaik.tugraz.at/sic/Products/Core-Crypto-Toolkits/PKCS_11_Provider/installing

Andy



来源:https://stackoverflow.com/questions/19258957/getting-java-iaik-pkcs11-wrapper-work-for-nfast

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!