Aspose.Email.Examples.CSharp.Email.Exchange.ExchangeServerUsesSSL.RemoteCertificateValidationHandler C# (CSharp) Method

RemoteCertificateValidationHandler() private static method

private static RemoteCertificateValidationHandler ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object
certificate System.Security.Cryptography.X509Certificates.X509Certificate
chain System.Security.Cryptography.X509Certificates.X509Chain
sslPolicyErrors SslPolicyErrors
return bool
        private static bool RemoteCertificateValidationHandler(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
        {
            return true; // ignore the checks and go ahead
        }
        // ExEnd:ExchangeServerUsesSSL