Changeset 15386 for stable/HeuristicLab.Clients.Common/3.3
- Timestamp:
- 09/28/17 08:08:13 (7 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 15361
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Clients.Common/3.3/ClientFactory.cs
r14186 r15386 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.