System.ServiceModel.Channels.HttpTransportSecurityHelpers
public static void AddServerCertIdentityValidation(HttpClientHandler httpClientHandler, EndpointAddress to)
public static void SetServerCertificateValidationCallback(HttpClientHandler handler, Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> validator)