title: Authentication failed because remote party has closed the transport stream
body: <p>I am developing a TCP client to connect OpenSSL server with the certificate authentication. I have using .crt and .key files shared by server team. These certificates are generated by OpenSSL commands.</p>
  
  <p>I am using <a href="https://msdn.microsoft.com/en-us/library/system.net.security.sslstream%28v=vs.85%29.aspx" rel="noreferrer"><code>SslStream</code></a> object to authenticate the Tcp client by calling <a href="https://msdn.microsoft.com/en-us/library/system.net.security.sslstream.beginauthenticateasclient%28v=vs.85%29.aspx" rel="noreferrer"><code>SslStream.AuthenticateAsClient</code></a> method by passing server <code>IP</code>, <a href="https://msdn.microsoft.com/en-us/library/system.security.authentication.sslprotocols%28v=vs.85%29.aspx" rel="noreferrer"><code>SslProtocols.Ssl3</code></a> and <code>X509CertificateCollection</code>.</p>
  
  <p>I am getting the following error:</p>
  
  <blockquote>
    <p>Authentication failed because the remote party has closed the transport stream</p>
  </blockquote>