I can enumerate the certificates present on the inserted smart card but how can one decide that the certificates present in the windows certificate store are related to smart card even when there is no smart card inserted? How can I know if a certificate from the store will ask for a PIN before using it when there is no smart card present? gold badges113 silver badges151 bronze badges asked Apr 4, 2016 at 1132 0 If you have a certificate and associated private key as an X509Certificate2 object, you can check property chain HardwareDevice property. If the property returns true then the key is stored on a smart card and most likely but not necesaary will propmpt a PIN when you try to access the key. This will work if the key is stored in the legacy Cryptographic Service Provider CSP. Modern cards support modern provider types called Key Storage Provider KSP which is poorly supported in .NET. This means that if the key is stored in the hardware KSP, then HasPrivateKey property of the X509Certificate2 object will return True and PrivateKey will be null. In this case, you will have to do some extra work by calling native CryptoAPI functions in the NCrypt family. Though, starting with .NET there are several extension methods in X509Certificate2 class which can be used to retrieve provider information X509Certificate2 Extension Methods. answered Apr 4, 2016 at 1918 gold badges40 silver badges69 bronze badges
Todisable Smart Card Plug and Play in local Group Policy, follow these steps: Click Start, type the Search programs and files box, and then press ENTER. In the console tree under Computer Configuration, click Administrative Templates. In the details pane, double-click Windows Components, and then double-click Smart Card.
Also if you want to specify the smart card as the logon method, you could configure policy: "Interactive logon: Require smart card" setting on the local computer: 1. Open the appropriate policy object, expand Computer Configuration, expand Windows Settings, and then expand Security Settings.
Idon't know a lot about the different services, but there have been a few times that the smart card resources service freezes while trying to get my computer to recognize the fact I inserted a smart card. The smart card I am using is a Department of Defense Common Access Card (DOD CAC). This issue is on my personal computer, Dell XPS M1730, running Vista SP2. My smart card works on the government computers that are using XP and a USB smart card reader.
First my apologies if this is the incorrect place for this question. I am using a SCM Microsystems Inc. SCR 3310 and trying to read an AT88SC0404C. When I run pcsctest I get the following results: Enter the reader number : 1 Waiting for card insertion: Command successful. Testing SCardConnect : No smart card inserted.