title: Export a certificate in asn.1 notation from X509Certificate2
body: <p>I'm currently learning working with certificates and now I'm curious, if it is possible to get the ASN.1 notation of a loaded certificate from a <code>X509Certificate2</code>-instance.  </p>
  
  <p>I have found the <code>Export</code>-Method and it works fine, however I have not seen a possibilty to change the encoding of the output format - it's only in the DER-format.    </p>
  
  <p>Is there a possibility to export/convert a loaded certificate as an ASCII ASN.1 certificate, something like in the example below:</p>
  
  <pre><code>Certificate:
      Data:
          Version: 3 (0x2)
          Serial Number: 1 (0x1)
          Signature Algorithm: md5WithRSAEncryption
          Issuer: C=XY....
   ...
  </code></pre>
  
  <p>Or is there a converter to convert DER to plain text? </p>