changes to regions ssl suport: verify if hostnames are validate by the selected cert, make clear that for now all regions need to have the same ExternalHostName if using sll (due to other code that needs to be changed later)

This commit is contained in:
UbitUmarov
2016-10-09 01:01:52 +01:00
parent 9843e3776e
commit 5b946405a0
3 changed files with 140 additions and 14 deletions

View File

@@ -417,7 +417,7 @@ namespace OpenSim
regionInfo.HttpPort = m_httpServerPort;
if(m_httpServerSSL)
{
if(m_networkServersInfo.HttpSSLCN != regionInfo.ExternalHostName)
if(!m_httpServer.CheckSSLCertHost(regionInfo.ExternalHostName))
throw new Exception("main http cert CN doesn't match region External IP");
regionInfo.ServerURI = "https://" + regionInfo.ExternalHostName +