我使用 Luna SA 和 SDK 来生成 key 对。
当我尝试列出 keystore (作为非 root 用户)时,它会抛出以下异常。如果我尝试以 root 用户身份尝试,它会列出并且工作正常。
我已向非 root 用户授予读写权限。
keytool error: java.security.KeyStoreException: LUNA not found
java.security.KeyStoreException: LUNA not found
Caused by: com.safenetinc.luna.LunaCryptokiException: function 'CrystokiConnect failed' returns 0x0
at com.safenetinc.luna.LunaCryptokiException.ThrowNew(LunaCryptokiException.java:)
at com.safenetinc.luna.LunaAPI.Initialize(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
任何帮助,我如何以非 root 用户身份列出 key 存储?
最佳答案
我遇到了同样的问题,一旦我们向/usr/safenet/lunaclient/提供适当的权限,问题就得到解决
chmod -R 777 /usr/safenet/lunaclient/
关于keystore - LunaCryptoki异常 : function 'CrystokiConnect failed' returns 0x0 as non root user,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33100902/