我使用 Luna SA 和 SDK 来生成密钥对。
当我试图列出密钥库(作为非 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 用户?