Changeset 16692 for branches/2521_ProblemRefactoring/HeuristicLab.Clients.Common/3.3/ClientFactory.cs
- Timestamp:
- 03/18/19 17:24:30 (6 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/2521_ProblemRefactoring/HeuristicLab.Clients.Common/3.3/ClientFactory.cs
r12012 r16692 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using System; 23 using System.Security.Cryptography.X509Certificates; 23 24 using System.ServiceModel; 24 25 using System.ServiceModel.Description; 26 using System.ServiceModel.Security; 25 27 using HeuristicLab.Clients.Common.Properties; 26 28 … … 59 61 client.ClientCredentials.UserName.UserName = userName; 60 62 client.ClientCredentials.UserName.Password = password; 61 client.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None; 63 client.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.ChainTrust; 64 65 // we (jkarder + abeham) have disabled the revocation check for now 66 // the certificate requires OCSP instead of CRL for revocation checks, but the OCSP check fails 67 // we currently don't know why this is the case, because we observed a valid OCSP request/response using wireshark 68 client.ClientCredentials.ServiceCertificate.Authentication.RevocationMode = X509RevocationMode.NoCheck; 62 69 return client; 63 70 } … … 83 90 channelFactory.Credentials.UserName.UserName = userName; 84 91 channelFactory.Credentials.UserName.Password = password; 85 channelFactory.Credentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None; 92 channelFactory.Credentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.ChainTrust; 93 94 // we (jkarder + abeham) have disabled the revocation check for now 95 // the certificate requires OCSP instead of CRL for revocation checks, but the OCSP check fails 96 // we currently don't know why this is the case, because we observed a valid OCSP request/response using wireshark 97 channelFactory.Credentials.ServiceCertificate.Authentication.RevocationMode = X509RevocationMode.NoCheck; 86 98 return channelFactory; 87 99 }
Note: See TracChangeset
for help on using the changeset viewer.