title: SSL Certificate: How to display country and state information?
body: <p>When creating CSR, since the conf can take country and state info, I assume it will be embedded in the certificate. If so, how to display it after the certificate is signed? I tried "$ openssl x509 -in foo.crt -noout -text" but seems the information is not there. I also checked "-help". Any other way to print? Thanks a lot.</p>
  
  <p>More found: it seems country and state information is removed when CSR is signed, correct?</p>
  
  <p>For example, this is what I observe.</p>
  
  <pre><code>$ openssl req -text -noout -in server.csr
  Certificate Request:
      Data:
          Version: 0 (0x0)
          Subject: Subject: DC=..., DC=..., C=..., ST=..., L=..., O=..., OU=..., CN=...
  ...
  
  $ openssl x509 -text -noout -in server.crt
  Certificate:
      Data:
          Version: 3 (0x2)
          Serial Number: 1 (0x1)
      Signature Algorithm: sha1WithRSAEncryption
          Issuer: DC=..., DC=..., O=..., OU=..., CN=...
      Validity
          Not Before: Dec  5 22:05:21 2013 GMT
          Not After : Dec  5 22:05:21 2015 GMT
      Subject: DC=..., DC=..., O=..., OU=..., CN=...
  </code></pre>
  
  <p>As seen, the fields of "C", "ST" and "L" in the Subject are missing in certificate.</p>