title: X509 Certificate with Subject UID
body: <p>I am loading a certificate from string like this:</p>
  
  <pre><code>public static void Test()
  {
      byte[] arrayCertificate;
      arrayCertificate = Convert.FromBase64String("CERT_STRING");
      X509Certificate2 clientCertificateFromXml = new X509Certificate2(arrayCertificate);
      Console.Write(clientCertificateFromXml);
      Console.ReadKey();
  }
  </code></pre>
  
  <p>But this certificate doesn't have a "Subject Unique Identifier"
  Take a look at this:</p>
  
  <p><a href="http://en.wikipedia.org/wiki/X.509" rel="nofollow">http://en.wikipedia.org/wiki/X.509</a> (The part of <strong>Structure of a certificate</strong>)</p>
  
  <p>And I want to know how can I read that value from my .NET code (I looked that I can get SerialNumber, Thumbprints and others but there is no Subject UID anywhere).</p>
  
  <p>Also, I will really appreciate If anyone can share an openssl command to include this UID for the certificate :-) (pfx one)</p>