简体   繁体   English

从Windows Server 2008 CA获取已颁发证书的信息

[英]Getting issued certificates' info from windows server 2008 CA

Is it possible to query certificate store on windows server 2008 using .net platform? 是否可以使用.net平台查询Windows Server 2008上的证书存储? I would like to get information about certificates that were issued by this system. 我想获取有关此系统颁发的证书的信息。

tnx grega g tnx grega g

With "issued certificates", do you mean certs that have been issued by this box, or to this box? 随着“颁发的证书”,你的意思是已经这个盒子发出的, 或者这个盒子证书?

Anyway, something like this should get you started playing around with certificate stores: 无论如何,这样的事情应该可以让您开始使用证书存储:

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();
    }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Windows JRE中导入StartCom CA证书 - Import StartCom CA certificates in Windows JRE SQL Server 2008 R2禁用Windows身份验证登录 - SQL Server 2008 R2 disable login from Windows Authentication Windows Server 2008上的COM安全性 - COM security on Windows Server 2008 在Android 6上由特定CA签署的仅信任证书 - Trust Only Certificates Signed by Specific CA on Android 6 如何准确验证 SSL 证书 (CA)? - How SSL Certificates (CA) are validated exactly? Kubernetes 入口 - 自动验证由中间证书颁发的证书 - Kubernetes Ingress - Automatically validating Certificates issued by Intermedia Certificate SQL Server 2008 - 登录失败。 登录来自不受信任的域,不能与Windows身份验证一起使用 - SQL Server 2008 - Login failed. The login is from an untrusted domain and cannot be used with Windows authentication SSL自签名CA证书和PHP发行/身份验证 - SSL Self-Signed CA Certificates and PHP Issue/Authentication 为什么 CA 证书可以有很长的到期时间,但他们签署的证书却不能? - Why is it OK for CA certificates to have long expiry times but not the certs they sign? 如何使用C#来确定证书是否已由同一CA颁发? - How to use C# to determine if a certificate has been issued by the same CA as another?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM