All pastes #437961 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-13 11:36 UTC
rendered paste body
            TcpClient cl = new TcpClient("www.orange.ch", 80);
            //nStream = cl.GetStream();

            //ssl wrapper
            SslStream ssl = new SslStream(cl.GetStream(), false,
                new RemoteCertificateValidationCallback(CertificateValidationCallback));
            try
            {
                ssl.AuthenticateAsClient(serverSN, null, System.Security.Authentication.SslProtocols.Ssl2 |
                System.Security.Authentication.SslProtocols.Ssl3 |
                System.Security.Authentication.SslProtocols.Tls, false);
            }