【发布时间】:2011-01-01 04:44:44
【问题描述】:
如果机器上还没有安装证书,我想在它上安装证书。我尝试检查商店是否包含证书,但不知何故我的商店总是空的。我检查了“中级证书颁发机构”文件夹,并在那里找到了 18 个证书。那为什么这段代码写的是0呢?
X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.LocalMachine);
Console.WriteLine(store.Certificates.Count);
我也试过 StoreLocation.CurrentUser。我做错了什么?
【问题讨论】:
标签: .net certificate