0
是否可以使用.net平臺在Windows Server 2008上查詢證書存儲? 我想獲得有關此係統頒發的證書的信息。從Windows Server 2008獲取頒發證書的信息CA
TNX grega摹
是否可以使用.net平臺在Windows Server 2008上查詢證書存儲? 我想獲得有關此係統頒發的證書的信息。從Windows Server 2008獲取頒發證書的信息CA
TNX grega摹
隨着「頒發的證書」,你的意思是已頒佈通過此框,或到這個盒子證書?
無論如何,這樣的事情應該讓你開始與證書存儲玩弄:
using System;
using System.Security.Cryptography.X509Certificates;
class CertificateStoreSample
{
static void Main(string[] args)
{
X509Store store = new X509Store(StoreName.Root);
store.Open(OpenFlags.ReadOnly);
foreach (X509Certificate certificate in store.Certificates)
{
Console.WriteLine(certificate.Subject);
}
store.Close();
}
}