I would like to know how to generate a self-signed certificate that may be used with the "AuthenticateAsServer" method on an SSLStream. This can be done using a command line tool like "makecert." Specifically, I would like .Net (C#) code that performs the same operations as makecert to programmatically generate the certificate.
Start Free Trial