控制台应用程序没有显示smarcard pin对话框 [英] console app not showing smarcard pin dialog

查看:80
本文介绍了控制台应用程序没有显示smarcard pin对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用控制台应用来签署数据(CNG)。我已经使用系统certstore上安装的密钥对实现了这一点,但是,当我尝试使用智能卡时,没有显示pin对话框弹出窗口(我在调用statck中看到了pin对话框dll)。 


我在"窗口"上进行了测试。版本,但我已经显示了针对话框弹出窗口的两个智能卡中的一个。


¿任何消化?在此先感谢。




解决方案

你好
Gabriel_5648,


感谢您在此处发帖。


>>您好,我正在使用控制台应用来签署数据(CNG)。我已经使用系统certstore上安装的密钥对实现了这一点,但是,当我尝试使用智能卡时,没有显示pin对话框弹出窗口(我在调用statck中看到了pin对话框dll)。 


我在"窗口"上测试了版本,但是我已经显示了针对话框弹出窗口的两个智能卡中的一个。


您能否提供有关您使用哪种方法对数据进行签名的更多信息?您是否检查过智能卡的CSP?


供应商提供智能卡和智能卡读卡器,在许多情况下,智能卡和智能卡读卡器的供应商不同。智能卡读卡器的驱动程序写入个人计算机/智能卡(PC / SC)标准。每个智能卡
必须具有使用CryptoAPI接口启用加密操作的凭据服务提供程序(CSP),以及用于启用与智能卡硬件通信的WinSCard API。


您也可以将容器创建操作设置为无静默上下文模式,它总是能够显示UI,例如PIN提示。


有关详细信息,请参阅下面的文档。


https://docs.microsoft.com/en-us/windows/access-protection/smart-cards/smart-card-architecture#smart-card-subsystem-architecture


希望这可以帮到你。


最好的问候,

Sera Yu




Hi, i'm working on a console app to sign data (CNG). I've already achieved that using installed key pairs on system certstore, but, when i tried with smartcards, pin dialog popup wasn't showed (I saw pin dialog dll in the call statck). 

I tested on a "windowed" version, but one of two smartcard that i have showed pin dialog popup.

¿Any sugestion? Thanks in advance.


解决方案

Hi Gabriel_5648,

thanks for posting here.

>>Hi, i'm working on a console app to sign data (CNG). I've already achieved that using installed key pairs on system certstore, but, when i tried with smartcards, pin dialog popup wasn't showed (I saw pin dialog dll in the call statck). 

I tested on a "windowed" version, but one of two smartcard that i have showed pin dialog popup.

Could you please provide more information about which method do you use to sign data? Have you checked the smart card's CSP?

Vendors provide smart cards and smart card readers, and in many cases the vendors are different for the smart card and the smart card reader. Drivers for smart card readers are written to the Personal Computer/Smart Card (PC/SC) standard. Each smart card must have a Credential Service Provider (CSP) that uses the CryptoAPI interfaces to enable cryptographic operations, and the WinSCard APIs to enable communications with smart card hardware.

You could also set the container creation operation into No silent context mode, it will always be able to show UI, such as the PIN prompt.

For more information, please refer to this document below.

https://docs.microsoft.com/en-us/windows/access-protection/smart-cards/smart-card-architecture#smart-card-subsystem-architecture

Hope this could be help of you.

Best Regards,
Sera Yu


这篇关于控制台应用程序没有显示smarcard pin对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆