Exemplo n.º 1
0
        CreateCertificateValidator(ClusterOptions clusterOptions)
        {
            bool OnCertificateValidation(HttpRequestMessage request, X509Certificate certificate,
                                         X509Chain chain, SslPolicyErrors sslPolicyErrors)
            {
                return(clusterOptions.ValidateCertificateCallback(request, certificate, chain, sslPolicyErrors));
            }

            return(OnCertificateValidation);
        }