问题描述
您好!
我开发支持microsoft GIDS的usb令牌(如智能卡)。我阅读了https://docs.microsoft.com/en-us/windows-hardware/drivers/smartcard/windows-inbox-smart-card-minidriver和GIDS规范v2.0。我创建了一个文件系统,如它写成:
创建ID为A000,A010-A014的文件,将DO放在文件中(主文件系统表,cardapps,cardcf,mscp \ cmapfile,cardid)。我创建INF文件并安装我的设备。好的,设备被识别为GIDS智能卡。
I develop usb token (like smart card) with support microsoft GIDS. I read https://docs.microsoft.com/en-us/windows-hardware/drivers/smartcard/windows-inbox-smart-card-minidriver and GIDS Specification v2.0. I create a file system, as it is written: create files with id A000, A010-A014, put DOs in files (master file system table, cardapps, cardcf, mscp\cmapfile, cardid). I create INF file and install my device. All ok, device is recognized as GIDS smart card.
现在我需要在我的设备上导入证书。我实现了GIDS规范。但是当Windows在设备上写入数字签名时(从控制面板 - >用户),我有一个错误:签名无效。 Wireshark usb dump 。
数据包编号227 - Generate_Asymm_Key_Pair请求。我返回格式化的RSA密钥(前256字节),但系统没有读取RSA密钥的最后部分。系统开始检查密钥(数据包编号246),当然,它无效。
Now I need to import certificate on my device. I implement a GIDS Specification. But when windows write digital signature on device (from control panel->users), I have an error: invalid signature. Wireshark usb dump here. Packet no 227 - Generate_Asymm_Key_Pair request. I return formated RSA key (first 256 byte), but then system not read last part of RSA key. System starts checking the key (packet no 246) and, оf course, It is not valid.
当我尝试通过certutil导入证书时(Wireshark dump
此处),系统不会在卡上创建任何EF密钥文件。它在文件中读/写一些DO,然后我有错误:卡不支持某些功能。定期窗口尝试从A000读取DO DF20。我不知道这是什么。根据文档,文件A000
只有主文件系统表,DO ID为DF1F。
When I try to import certificate by certutil (Wireshark dump here), system not create any EF key file on card. It read/write some DO in files, and then I have error: card not support some functions. Periodically windows try read DO DF20 from A000. I dont know what is this. According to documentation the file A000 have only master file system table with DO id DF1F.
哪里出错?或者我在哪里可以找到有关系统微型驱动程序的其他信息?或者我如何调试/跟踪这个微型驱动程序?请帮忙。
Where is a mistake? Or where I can find additional information about system minidriver? Or how I can debug/trace this minidriver? Please, help.
推荐答案
这篇关于GIDS minidriver问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!