title: Create certificate for a client app in .NET
body: <p>I'm looking for a server app to be routinely generating certificates for client applications using self-signed root. Is there any streamlined process in .NET to programmatically generate those certificates?</p>
  
  <p>I can, of course, keep spawning makecert or openssl, but I was looking for more programmatic, in-memory method, when you just get X509Certificate on output.</p>
  
  <p>If someone got a code snippet, can you please share?</p>