在我的手表数据 USB 密钥上使用 Chilkat.dll 时出错

问题描述 投票:0回答:1

在 My Watch 数据 USB 密钥上使用 Chilkat.dll 时收到附加错误。有人知道解决办法吗

应用程序在 Epass-2003 USB Key 上运行良好。我们收到了一个新的 USB 密钥“Watch Data Ukey”,我根据新密钥更改了令牌 ID 和密码,但收到以下错误。

将 Chilkat.dll 版本更新至最新版本。并尝试在服务中重新启动智能卡。理学硕士。尝试过系统重启。一些 Ai Bot 表示这是因为 CCID 已参与导致了问题,并试图锁定使用此 ccid 的其他应用程序。

错误截图: 1

错误日志:

ChilkatLog:
  AcquireContext:
    DllDate: Mar 29 2024
    ChilkatVersion: 9.5.0.98
    UnlockStatus: 1
    Architecture: Little Endian; 64-bit
    Language: .NET 4.5 / x64 / VS2013
    VerboseLogging: 0
    acquireContext(31ms):
      readerName: Watchdata WDIND USB CCID Key 0
      connectToCardInReader:
        reader: Watchdata WDIND USB CCID Key 0
        shareMode: shared
        preferredProtocol: no_preference
      --connectToCardInReader
      ATR: 3B6D00005744364101869311117A0F6678
      checkKnownAtrs:
        ATR: 3B6D00005744364101869311117A0F6678
      --checkKnownAtrs
      lookupCardInfoByAtr:
        calaisRegLookup:
          atrToFind: 3b6d00005744364101869311117a0f6678
          openedKey: SOFTWARE
          openedKey: Microsoft
          openedKey: Cryptography
          openedKey: Calais
          openedKey: SmartCards
          Opened SOFTWARE/Microsoft/Cryptography/Calais/SmartCards
          RegistryQueryError: The system cannot find the file specified.
          ValueName: 80000001
          RegistryQueryError: The system cannot find the file specified.
          ValueName: Smart Card Key Storage Provider
          dllFilename: 
          The missing 80000001 entry indicates this card may not have a Minidriver interface...
          cryptoProvider: PROXKey CSP India V3.0
          smartCardKeyStorageProvider: 
          Found ATR in SOFTWARE/Microsoft/Cryptography/Calais/SmartCards!
        --calaisRegLookup
      --lookupCardInfoByAtr
      cardName: WD_Ultimate Key Minidriver
      dllFilename: 
      cryptoProv: PROXKey CSP India V3.0
      keyStorageProv: 
      This card may not not support the ScMinidriver API.
      It may support CNG and/or PKCS11..
      Using the default Windows minidriver msclmd.dll
      Loaded minidriver DLL.
      cardData_atr: 3B6D00005744364101869311117A0F6678
      cardData_cardName: WD_Ultimate Key Minidriver
      Calling CardAcquireContext with CARD_DATA version=7
      WindowsError: An unexpected card error has occurred.
      scardError: 0x8010001f
      Retry CardAcquireContext with CARD_DATA version=6
      WindowsError: An unexpected card error has occurred.
      scardError: 0x8010001f
      Retry CardAcquireContext with CARD_DATA version=5
      WindowsError: Indicates two revision levels are incompatible.
      scardError: 0x51a
      Failed.
    --acquireContext
    Failed.
  --AcquireContext
--ChilkatLog
c# json visual-studio chilkat chilkat-email
1个回答
0
投票

请勿将 ScMinidriver 与 WatchData 令牌一起使用。请改用 PKCS11。使用 Chilkat v9.5.0.98 及更高版本,您可以调用 Chilkat.Cert.LoadFromSmartcard(""),Chilkat 将由于 ATR 自动识别 WatchData 令牌,并且 Chilkat 将自动选择使用 PKCS11 w/ 驱动程序为 % WINDIR/System32/SignatureP11.dll

如果您希望使用具有更好控制能力的较低级别 API,您也可以使用 Chilkat.Pkcs11 类。

© www.soinside.com 2019 - 2024. All rights reserved.