Skip to content

Instantly share code, notes, and snippets.

@michaelklishin
Created November 6, 2013 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelklishin/e553b909af90375f5082 to your computer and use it in GitHub Desktop.
Save michaelklishin/e553b909af90375f5082 to your computer and use it in GitHub Desktop.
8,11c8,18
< sslStream.AuthenticateAsClient(sslOption.ServerName,
< sslOption.Certs,
< sslOption.Version,
< false);
---
> if (sslOption.Certs == null || sslOption.Certs.Count == 0)
> {
> sslStream.AuthenticateAsClient(sslOption.ServerName);
> }
> else
> {
> sslStream.AuthenticateAsClient(sslOption.ServerName,
> sslOption.Certs,
> sslOption.Version,
> false);
> }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment