none
Manage X509 Certificates on Remote Machine RRS feed

  • Question

  • Hello,

    I am trying to figure out how to manage X.509 certificates on a remote machine using C#. .NET has a great framework for X.509 certificates, but the X509Store class only offers access to the local machine. How does one access X.509 stores on other machines? Is there a class or method for doing this? Is this possible using either WMI or ADSI? Thanks very much for your help,

    - Daniel
    Friday, June 26, 2009 2:55 PM

All replies

  • Greetings,

    Link is given below.

    X.509 Certificates in .NET
    http://www.codeproject.com/KB/cpp/X509Certificate.aspx

    Security Features in C#
    http://www.csharphelp.com/archives/archive189.html

    Take Care

    PL

     
    Friday, October 16, 2009 11:16 AM
  • Hi,

    Incase anyone is still interested in this, I don't think that the Framework supports directly requesting the stores however you can enumerate the following registry keys

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\MY\Certificates\CertificateName

    And ready the binary registry value called Blob and then construct a new X509Certificate2 object from the binary data. Quick limitation of this is that you can check the HasPrivateKey property.

    X509Certificate2

    Cert = newX509Certificate2(Blob);

    Thanks,

    Dave

    Automated Network Documentation


    David Homer

    • Proposed as answer by David Homer Wednesday, July 11, 2012 1:55 PM
    Wednesday, July 11, 2012 1:55 PM