【问题标题】:pkcs11 interop GetSlotList(SlotsType.WithTokenPresent); returns empty listpkcs11 互操作 GetSlotList(SlotsType.WithTokenPresent);返回空列表
【发布时间】:2018-05-28 14:13:22
【问题描述】:

我正在使用 pkcs11 互操作库来列出这样的可用设备

using (Pkcs11 pkcs11 = new Pkcs11(_libraryPath, AppType.SingleThreaded))
{
    List<Slot> slots =  pkcs11.GetSlotList(SlotsType.WithTokenPresent);
    //using slots
}

它工作正常,但是当我在 Web 应用程序中使用相同的代码或循环运行时,即使设备已连接,我也会将插槽计数为 0。

【问题讨论】:

  • 谢谢,@jariq 我的 Web 服务不在 IIS 上,它是作为 Windows 服务运行的自托管 Web-API,具有本地系统权限,比本地服务拥有更多权限

标签: c# pkcs#11 pkcs11interop


【解决方案1】:

什么是 PKCS#11 库?它是针对基于网络的设备还是针对盒子上有相应服务的设备?我怀疑你没有 LPC/RPC 到其相应服务器的权限。

【讨论】:

    猜你喜欢
    • 2018-11-21
    • 1970-01-01
    • 2021-10-04
    • 1970-01-01
    • 1970-01-01
    • 2022-01-04
    • 1970-01-01
    相关资源
    最近更新 更多