For a secure application I need to select a certificate in a dialog.
How can I access certificate store or a part of it (e.g. storeLocation="Local Machine"
and storeName="My"
) using C# and get a collection of all certificates from there? Thanks in advance for your help.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Try this:
The simplest way to do that is by opening the certificate store you want and then using
X509Certificate2UI
.More information in
X509Certificate2UI
on MSDN.Yes -- the
X509Store.Certificates
property returns a snapshot of the X.509 certificate store.