Use C# to get an SMTP server certificate
<p>Using C# how do I connect to a SMTP server that supports STARTTLS and get its SSL certificate? I know it can be done using openssl with something like this</p>

<pre><code>openssl s_client -starttls smtp -crlf -connect 192.168.0.1:25
</code></pre>

<p>I don't want to call openssl and parse its output though. An example of how to do it with C# would be very much appreciated.</p>
