title: Retrieving issuer of a X509Certificate2 object
body: <p>I have a <a href="https://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate2(v=vs.110).aspx" rel="noreferrer">X509Certificate2</a> object retrieved from X509Store. I want to get the issuer of this certificate but the only two properties that this object offers are <a href="https://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate.issuer(v=vs.110).aspx" rel="noreferrer">X509Certificate2.Issuer</a> and <a href="https://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate2.issuername(v=vs.110).aspx?cs-save-lang=1&amp;cs-lang=csharp#code-snippet-1" rel="noreferrer">X509Certificate2.IssuerName</a> where <code>.Issuer</code> is kinda misleading as it returs string that is basically issuer's name.</p>
  
  <p>Both those properties can at most return a <a href="https://msdn.microsoft.com/en-us/library/aa366101(v=vs.85).aspx" rel="noreferrer">Distinguished Name</a> but DNs are not unique, right? Therefore I don't want to use <a href="https://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate2collection.find(v=vs.110).aspx" rel="noreferrer">X509Certificate2Collection.Find</a> method with <a href="https://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509findtype(v=vs.110).aspx" rel="noreferrer">X509FindType.FindByIssuerDistinguishedName</a> flag. </p>
  
  <p>How can I get a certificate's issuer and be sure I have the "right one". Note: I don't have to use X509Certificate2 object. Alternatives are welcome.</p>