Using different cipher than default
<p>i need to connect to a server using only one cipher - "ADH-RC4-MD5".
i'm looking for a generic solution which will enable me to check what cipher the server is using (i'm a provisioning server that acts as a client to many other application servers and need to connect and get data - each time it can be a different server) .</p>

<p>the flow i had so far was :</p>

<pre><code>TcpClient tcpClient = new TcpClient(serverName, port);
SslStream sslStream = new SslStream(tcpClient.GetStream(), false, null, null,                EncryptionPolicy.RequireEncryption);
sslStream.AuthenticateAsClient(HostName);
</code></pre>

<p>i keep on crash in the "AuthenticateAsClient".
the reason is that one AS is working only with the mentioned cipher.</p>

<p>i have verified this is the case with the <a href="http://code.google.com/p/sslscan-win/" rel="nofollow">SslScan tool</a>.</p>

<p>i have tried to enter this cipher through the policy editor (gpedit.msc in the command line)
but again with no luck.</p>

<p>basically i'm looking for a way to use this cipher from code dynamically.</p>

<p>i have a working Java code
`</p>

<pre><code>sslsocket.setNeedClientAuth(true);
String[] list = new String[1];
list[0] = "ADH-RC4-MD5";
sslsocket.setEnabledCipherSuites(list);
</code></pre>

<p>`
Any idea of c# equivalent ?</p>
