EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Detect Certificate Source in WinCertStorage

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
Posted: 08/03/2010 02:04:12
by Jesus Garcia (Standard support level)
Joined: 05/23/2010
Posts: 15

When i load the certificates with TElWinCertStorage, how can i detect if one certificate is from smartcard. I only want to let users use certificates that are stored in smartcards.
Posted: 08/03/2010 02:11:04
by Eugene Mayevski (EldoS Corp.)

You can enumerate physical storages, then use the enumerated physical storage names to enumerate only certificates that reside in those storages. Alternatively, you can display only certificates with non-exportable private keys, but this is less reliable way (as the user could have added some certificate with export disabled).

The problem is that CryptoAPI was designed to *hide* the location of certificates and as such, it doesn't provide a uniform way to get the actual location.

Sincerely yours
Eugene Mayevski



Topic viewed 619 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!