public bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, System.Net.Security.SslPolicyErrors errors)
{ // 总是接受
return true;
{ // 总是接受
return true;
}
{
ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(CheckValidationResult);
m_client = new OVM.VirtualMachineServiceClient();
m_clientPool = new OVMPool.ServerPoolServiceClient();
m_clientPool.ClientCredentials.UserName.UserName = User_OVS;
m_clientPool.ClientCredentials.UserName.Password = PWD_OVS;
m_client.ClientCredentials.UserName.UserName = User_OVS;
m_client.ClientCredentials.UserName.Password = PWD_OVS;