CP-13389: Allow XenCenter to use TLS 1.1 and 1.2 protocols

This commit is contained in:
Stephen Turner 2015-07-30 12:47:14 +01:00
parent 09c495552f
commit 26b060257f

View File

@ -316,6 +316,7 @@ namespace XenAdmin
ServicePointManager.DefaultConnectionLimit = 20; ServicePointManager.DefaultConnectionLimit = 20;
ServicePointManager.ServerCertificateValidationCallback = SSL.ValidateServerCertificate; ServicePointManager.ServerCertificateValidationCallback = SSL.ValidateServerCertificate;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
XenAPI.Session.UserAgent = string.Format("XenCenter/{0}", ClientVersion()); XenAPI.Session.UserAgent = string.Format("XenCenter/{0}", ClientVersion());
ReconfigureConnectionSettings(); ReconfigureConnectionSettings();