Hacker News new | past | comments | ask | show | jobs | submit login

.net running on windows 7+ System.Net.WebRequest should support TLS SNI, the test I just ran on my machine worked fine (windows 7, .net 4.5)

  using System.Net;
  string url = "https://www.mnot.net/blog/2014/05/09/if_you_can_read_this_youre_sniing";
  var request = (HttpWebRequest)WebRequest.Create(url);
  var response = (HttpWebResponse)request.GetResponse();
  var resStream = response.GetResponseStream();
  using(var sw = new System.IO.StreamReader(resStream))
  {
  	Console.WriteLine(sw.ReadToEnd());
  }
As far as I know System.Net.Security.SslStream does NOT support TLS+SNI though.



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: