none
How to get "Issued To" from X509Certificate2?

    Question

  • How to get "Issued To" from X509Certificate2?

    if there is a way to get this, plz point me.

    Thursday, May 19, 2011 3:03 PM

Answers

  • Thank

    I get a solution...

     

    string l_IssucedTo = l_X509Certificate.GetNameInfo(X509NameType.SimpleName, false);

    • Marked as answer by kaung myat bo Saturday, May 21, 2011 9:12 AM
    Saturday, May 21, 2011 9:12 AM

All replies

  • using System.Security.Cryptography.X509Certificates;
    X509Certificate x509Cert = new X509Certificate(byteX509); string strX509Name = x509Cert.GetName();

    countryStyle
    Thursday, May 19, 2011 4:01 PM
  • Thank

    I get a solution...

     

    string l_IssucedTo = l_X509Certificate.GetNameInfo(X509NameType.SimpleName, false);

    • Marked as answer by kaung myat bo Saturday, May 21, 2011 9:12 AM
    Saturday, May 21, 2011 9:12 AM