c# - Can my soft be noticed of a change in the Windows Certificate Store ? (.NET) -



c# - Can my soft be noticed of a change in the Windows Certificate Store ? (.NET) -

as title suggests, want know if there kind of event grab know when certificate store has changed.

the goal observe when user entered specific kind of usb smartcard / stick signing certificate/token in it. certificate registered in windows cert store, ("my", personnal certificates).

i don't thought of detecting usb events, because there variable delay between moment when key plugged , moment certificate registered (and usable).

of course, can set timer checks store every 10 sec or so, hope you'll agree not elegant solution. of course of study if no other alternative available, that's i'll end doing guess.

thank you

how hybrid approach? watch usb events, when usb key plugged in, start polling store every couple of seconds until see new cert. still not ideal, much closer dumb poll every 10 seconds, 24/7/365.

the trick knowing when usb key of particular type end registering certificate. if can know in usb event handler, check it, , if user plugs in ordinary flash drive, don't start polling. if can't know this, when observe new connection, might poll certificate store min before giving up.

c# .net events event-handling certificatestore

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -