title: What Inputs to provide to see a successful run of secure SslStream program
body: <p>I am trying to gain some traction on secure socket implementation in c#. In my pursuit, I got a feeling about how TLS handshake works by going through Wikipedia and other sources.</p>
  
  <p>I also thought to review some sample code and stumbled on the following <a href="https://docs.microsoft.com/en-us/dotnet/api/system.net.security.sslstream?redirectedfrom=MSDN&amp;view=netframework-4.7.2" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/dotnet/api/system.net.security.sslstream?redirectedfrom=MSDN&amp;view=netframework-4.7.2</a> </p>
  
  <p>There are two programs(console applications) basically one for client and other for the server, to be able to run the program Main method requires to be fed with some arguments i.e. MachineName, and ServerCertificateName.</p>
  
  <p>Please suggest how to get a hold of a certificate to be able to fulfill the certificate name field.</p>