We may have literal ip address in the SNI that will cause errors
To prevent any errors SNI should only contains names
see comments in https://github.com/mono/mono/pull/4123
For exemple WebRequest.CreateHttp("https://[fd30:0:2805::10]:443/rhm");
-> we will have an exception System.Net.WebException: The remote server returned an error: (400) Bad Request.
in the remote apache logs :
[Tue Apr 04 11:16:55.367123 2017] [ssl:error] [pid 26715] AH02032: Hostname [fd30 provided via SNI and hostname fd30:0:2805: provided via HTTP are different
Also those recent commits are not ipv6 compatible with literal ip address:
-> "IndexOf (':')" with a literal ipv6 is a problem
Environnement : CentOS 7 with mono 188.8.131.520
Another issue with IndexOf(':') in this commit with a literal ipv6
Another issue with literal ipv6 :
In XSP (MonoWorkerRequest.cs) the function GetServerName also cause an exception when using asp.net . it is the same issue with IndexOf (':') when not testing before if this is a literal ipv6.